diff --git a/pyproject.toml b/pyproject.toml index 1301ee6..26ecad0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,4 +36,4 @@ coredumpy = "coredumpy:main" coredumpy = "coredumpy:pytest_hook" [tool.setuptools.dynamic] -version = {attr = "coredumpy.__version__"} \ No newline at end of file +version = {attr = "coredumpy.__version__"} diff --git a/tests/test_pytest.py b/tests/test_pytest.py index d1a6b57..9c2570f 100644 --- a/tests/test_pytest.py +++ b/tests/test_pytest.py @@ -12,7 +12,7 @@ class TestPytest(TestBase): def test_pytest(self): with tempfile.TemporaryDirectory() as tmpdir: - test = textwrap.dedent(f""" + test = textwrap.dedent(""" import pytest import os def test_for_pytest_equal(): @@ -32,7 +32,7 @@ def test_for_pytest_greater(): pytest.main(["--enable-coredumpy", "--coredumpy-dir", {repr(dump_path)}, {repr(test_path)}]) """ self.run_script(script) - self.assertEqual(len(os.listdir(dump_path)), 2) + self.assertEqual(len(os.listdir(dump_path)), 2, f"The dump directory has {os.listdir(dump_path)}") # Without the enable, it should not produce dumps script = f"""