diff options
author | Matthew Hughes <matthewhughes934@gmail.com> | 2021-02-20 18:01:42 +0000 |
---|---|---|
committer | Matthew Hughes <matthewhughes934@gmail.com> | 2021-02-20 18:01:42 +0000 |
commit | 0e5e4e03e64c9a607bcaf40f8192ca3049f8db53 (patch) | |
tree | 6610af5c3de3addc491ea1e47148d3942260bbff | |
parent | 4964b468c83c06971eb743fbc57cc404f760c573 (diff) | |
download | pytest-0e5e4e03e64c9a607bcaf40f8192ca3049f8db53.tar.gz |
Remove some unused 'tmpdir's
-rw-r--r-- | testing/code/test_source.py | 4 | ||||
-rw-r--r-- | testing/python/collect.py | 2 | ||||
-rw-r--r-- | testing/python/integration.py | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 083a7911f..5f2c6b1ea 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -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( diff --git a/testing/python/collect.py b/testing/python/collect.py index c52fb017d..22ac6464b 100644 --- a/testing/python/collect.py +++ b/testing/python/collect.py @@ -274,7 +274,7 @@ class TestFunction: pytester.makepyfile( """ class A(object): - def __call__(self, tmpdir): + def __call__(self): 0/0 test_a = A() diff --git a/testing/python/integration.py b/testing/python/integration.py index 8576fcee3..77ebfa23e 100644 --- a/testing/python/integration.py +++ b/testing/python/integration.py @@ -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") |