Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Apr 24, 2024
1 parent 8056e86 commit 38aee8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ coredumpy = "coredumpy:main"
coredumpy = "coredumpy:pytest_hook"

[tool.setuptools.dynamic]
version = {attr = "coredumpy.__version__"}
version = {attr = "coredumpy.__version__"}
4 changes: 2 additions & 2 deletions tests/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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"""
Expand Down

0 comments on commit 38aee8c

Please sign in to comment.