Skip to content

Commit e3f2122

Browse files
committed
Remove underscore from fixture name
1 parent cf9d83f commit e3f2122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_underscores.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class FilePair(NamedTuple):
3737

3838

3939
@pytest.fixture
40-
def _install_pth_file() -> Generator[None, None, None]:
40+
def install_pth_file() -> Generator[None, None, None]:
4141
"""Install the `_.pth` file in the site-packages directory to make the execute tests work."""
4242
src_pth_file = SRC_DIR / "underscores" / "_.pth"
4343
site_packages = sysconfig.get_path("purelib")
@@ -48,7 +48,7 @@ def _install_pth_file() -> Generator[None, None, None]:
4848
installed_pth_file.unlink()
4949

5050

51-
@pytest.mark.usefixtures("_install_pth_file")
51+
@pytest.mark.usefixtures("install_pth_file")
5252
@pytest.mark.parametrize(("file_pair"), TEST_FILES)
5353
def test_execute(file_pair: FilePair) -> None:
5454
args = (sys.executable, "-X", "utf8")

0 commit comments

Comments
 (0)