Skip to content

Commit

Permalink
skip flaky test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Jan 9, 2024
1 parent aa08755 commit adcb10f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: run objspace unit tests
run: |
pypy pytest.py pypy/objspace -v
pypy pytest.py pypy/objspace -v -m "not flaky"
- name: translate
run: |
Expand Down
2 changes: 2 additions & 0 deletions pypy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def pytest_configure(config):
if not mode_A and not mode_D: # 'own' tests
from rpython.conftest import LeakFinder
config.pluginmanager.register(LeakFinder())
config.addinivalue_line("markers", "flaky: test that sometimes fails")


def pytest_addoption(parser):
group = parser.getgroup("pypy options")
Expand Down
1 change: 1 addition & 0 deletions pypy/objspace/std/test/test_methodcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class C(A):
assert cache_counter[1] >= 3 # should be (27, 3)
assert sum(cache_counter) == 30

@pytest.mark.flaky
def test_many_names(self):
@self.retry
def run():
Expand Down

0 comments on commit adcb10f

Please sign in to comment.