diff options
author | Daniel Hahler <git@thequod.de> | 2020-02-25 03:47:35 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2020-02-28 20:40:39 +0100 |
commit | 8128f4b3b849d3ea42591f107017b008c168adf1 (patch) | |
tree | f8276fa49a1f155c0da2d3c7ce76838fe376e79d /testing/test_assertrewrite.py | |
parent | 6092d3c6e1c99be7a424db72ea144aa8caa0862e (diff) | |
download | pytest-8128f4b3b849d3ea42591f107017b008c168adf1.tar.gz |
Fix test_write_pyc: passed list to parseconfig
Diffstat (limited to 'testing/test_assertrewrite.py')
-rw-r--r-- | testing/test_assertrewrite.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 91a3a35e2..99328c6f9 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -23,6 +23,7 @@ from _pytest.assertion.rewrite import PYTEST_TAG from _pytest.assertion.rewrite import rewrite_asserts from _pytest.config import ExitCode from _pytest.pathlib import Path +from _pytest.pytester import Testdir def setup_module(mod): @@ -956,11 +957,11 @@ class TestAssertionRewriteHookDetails: ) assert testdir.runpytest().ret == 0 - def test_write_pyc(self, testdir, tmpdir, monkeypatch): + def test_write_pyc(self, testdir: Testdir, tmpdir, monkeypatch) -> None: from _pytest.assertion.rewrite import _write_pyc from _pytest.assertion import AssertionState - config = testdir.parseconfig([]) + config = testdir.parseconfig() state = AssertionState(config, "rewrite") source_path = str(tmpdir.ensure("source.py")) pycpath = tmpdir.join("pyc").strpath |