Skip to content

Commit 0e5e4e0

Browse files
Remove some unused 'tmpdir's
1 parent 4964b46 commit 0e5e4e0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

testing/code/test_source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ def g():
286286
assert lines == ["def f():", " def g():", " pass"]
287287

288288

289-
def test_source_of_class_at_eof_without_newline(
290-
tmpdir, _sys_snapshot, tmp_path: Path
291-
) -> None:
289+
def test_source_of_class_at_eof_without_newline(_sys_snapshot, tmp_path: Path) -> None:
292290
# this test fails because the implicit inspect.getsource(A) below
293291
# does not return the "x = 1" last line.
294292
source = Source(

testing/python/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def test_function_as_object_instance_ignored(self, pytester: Pytester) -> None:
274274
pytester.makepyfile(
275275
"""
276276
class A(object):
277-
def __call__(self, tmpdir):
277+
def __call__(self):
278278
0/0
279279
280280
test_a = A()

testing/python/integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def mock_basename(path):
234234
@mock.patch("os.path.abspath")
235235
@mock.patch("os.path.normpath")
236236
@mock.patch("os.path.basename", new=mock_basename)
237-
def test_someting(normpath, abspath, tmpdir):
237+
def test_someting(normpath, abspath):
238238
abspath.return_value = "this"
239239
os.path.normpath(os.path.abspath("hello"))
240240
normpath.assert_any_call("this")

0 commit comments

Comments
 (0)