Remove some unused 'tmpdir's
This commit is contained in:
parent
4964b468c8
commit
0e5e4e03e6
|
@ -286,9 +286,7 @@ def test_deindent() -> None:
|
|||
assert lines == ["def f():", " def g():", " pass"]
|
||||
|
||||
|
||||
def test_source_of_class_at_eof_without_newline(
|
||||
tmpdir, _sys_snapshot, tmp_path: Path
|
||||
) -> None:
|
||||
def test_source_of_class_at_eof_without_newline(_sys_snapshot, tmp_path: Path) -> None:
|
||||
# this test fails because the implicit inspect.getsource(A) below
|
||||
# does not return the "x = 1" last line.
|
||||
source = Source(
|
||||
|
|
|
@ -274,7 +274,7 @@ class TestFunction:
|
|||
pytester.makepyfile(
|
||||
"""
|
||||
class A(object):
|
||||
def __call__(self, tmpdir):
|
||||
def __call__(self):
|
||||
0/0
|
||||
|
||||
test_a = A()
|
||||
|
|
|
@ -234,7 +234,7 @@ class TestMockDecoration:
|
|||
@mock.patch("os.path.abspath")
|
||||
@mock.patch("os.path.normpath")
|
||||
@mock.patch("os.path.basename", new=mock_basename)
|
||||
def test_someting(normpath, abspath, tmpdir):
|
||||
def test_someting(normpath, abspath):
|
||||
abspath.return_value = "this"
|
||||
os.path.normpath(os.path.abspath("hello"))
|
||||
normpath.assert_any_call("this")
|
||||
|
|
Loading…
Reference in New Issue