Skip to content

Commit 52bf967

Browse files
authored
Merge pull request #10432 from jdufresne/monkeypatch
Remove unused monkeypatch fixtures in tests
2 parents 8b07456 + 3047bba commit 52bf967

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

news/cc4b7565-d7c2-4782-a5aa-d5aee715859e.trivial.rst

Whitespace-only changes.

tests/unit/test_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_skip_invalid_wheel_link(self, caplog, data):
126126

127127
assert "Skipping link: invalid wheel filename:" in caplog.text
128128

129-
def test_not_find_wheel_not_supported(self, data, monkeypatch):
129+
def test_not_find_wheel_not_supported(self, data):
130130
"""
131131
Test not finding an unsupported wheel.
132132
"""

tests/unit/test_locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_mock_getpwuid(self, uid):
8282

8383

8484
class TestDistutilsScheme:
85-
def test_root_modifies_appropriately(self, monkeypatch):
85+
def test_root_modifies_appropriately(self):
8686
# This deals with nt/posix path differences
8787
# root is c:\somewhere\else or /somewhere/else
8888
root = os.path.normcase(

tests/unit/test_operations_prepare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_unpack_url_no_download(self, tmpdir, data):
182182
assert os.path.isdir(os.path.join(self.build_dir, "simple"))
183183
assert not os.path.isfile(os.path.join(self.download_dir, self.dist_file))
184184

185-
def test_unpack_url_bad_hash(self, tmpdir, data, monkeypatch):
185+
def test_unpack_url_bad_hash(self, tmpdir, data):
186186
"""
187187
Test when the file url hash fragment is wrong
188188
"""

tests/unit/test_req_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def test_relative_local_nested_req_files(self, session, monkeypatch, tmpdir):
475475
assert reqs[0].name == req_name
476476
assert not reqs[0].constraint
477477

478-
def test_absolute_local_nested_req_files(self, session, monkeypatch, tmpdir):
478+
def test_absolute_local_nested_req_files(self, session, tmpdir):
479479
"""
480480
Test an absolute nested req file path
481481
"""

tests/unit/test_utils_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_make_subprocess_output_error__non_ascii_command_arg(monkeypatch):
8787
assert actual == expected, f"actual: {actual}"
8888

8989

90-
def test_make_subprocess_output_error__non_ascii_cwd_python_3(monkeypatch):
90+
def test_make_subprocess_output_error__non_ascii_cwd_python_3():
9191
"""
9292
Test a str (text) cwd with a non-ascii character in Python 3.
9393
"""

0 commit comments

Comments
 (0)