diff --git a/tests/test_utils.py b/tests/test_utils.py index f6ab1e6..82c7d59 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -16,6 +16,7 @@ def __init__(self, name): class FakeFrame: def __init__(self, name): self.f_code = FakeCode(name) + self.f_lineno = 1 class TestUtils(TestBase): @@ -23,7 +24,7 @@ def test_get_dump_filename(self): frame = FakeFrame("test_get_dump_filename") filename = get_dump_filename(frame, None, None) self.assertEqual(filename, os.path.abspath(filename)) - self.assertIn("test_get_dump_filename", filename) + self.assertIn("test_get_dump_filename_1", filename) filename = get_dump_filename(frame, "test.dump", None) self.assertEqual(filename, os.path.abspath("test.dump")) @@ -33,7 +34,7 @@ def test_get_dump_filename(self): filename = get_dump_filename(frame, None, "dir") self.assertEqual(filename, os.path.abspath(filename)) - self.assertIn("test_get_dump_filename", filename) + self.assertIn("test_get_dump_filename_1", filename) self.assertIn("dir", filename) with self.assertRaises(ValueError):