Skip to content

Commit

Permalink
tests: mark GC tests as flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Aug 20, 2023
1 parent c9810e3 commit c34daf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
from test.utils import samples
from test.utils import target

from flaky import flaky
import pytest


@allpythons(min=(3, 7))
@mojo
@flaky
def test_gc_off(py, mojo):
result = austin("-i", "1ms", *python(py), target("target_gc.py"), mojo=mojo)
assert result.returncode == 0
Expand All @@ -48,6 +50,7 @@ def test_gc_off(py, mojo):
)
@allpythons(min=(3, 7))
@mojo
@flaky
def test_gc_on(py, mojo):
result = austin("-gi", "1ms", *python(py), target("target_gc.py"), mojo=mojo)
assert result.returncode == 0
Expand All @@ -61,6 +64,7 @@ def test_gc_on(py, mojo):

@allpythons(min=(3, 7))
@mojo
@flaky
def test_gc_disabled(py, monkeypatch, mojo):
monkeypatch.setenv("GC_DISABLED", "1")

Expand Down

0 comments on commit c34daf5

Please sign in to comment.