Skip to content

Commit

Permalink
Add extra log
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Apr 24, 2024
1 parent 795fd3b commit afe03b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def test_for_pytest_greater():
import pytest
pytest.main(["--enable-coredumpy", "--coredumpy-dir", {repr(dump_path)}, {repr(test_path)}])
"""
self.run_script(script)
self.assertEqual(len(os.listdir(dump_path)), 2, f"The dump directory has {os.listdir(dump_path)}")
stdout, stderr = self.run_script(script)
self.assertEqual(len(os.listdir(dump_path)), 2, f"The dump directory has {os.listdir(dump_path)}\n{stdout}\n{stderr}")

# Without the enable, it should not produce dumps
script = f"""
Expand Down

0 comments on commit afe03b6

Please sign in to comment.