Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ def test_future_import(self):
print(1 / 2)
tester(4)

@pytest.mark.skipif(
not os.getenv("EXECUTING_SLOW_TESTS"),
reason="These tests are very slow, enable them explicitly",
)
def test_many_calls(self):
node = None
start = time.time()
Expand All @@ -290,6 +294,10 @@ def test_many_calls(self):
self.assertIs(node, new_node)
self.assertLess(time.time() - start, 1)

@pytest.mark.skipif(
not os.getenv("EXECUTING_SLOW_TESTS"),
reason="These tests are very slow, enable them explicitly",
)
def test_many_source_for_filename_calls(self):
source = None
start = time.time()
Expand Down