File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
hypothesis-python/tests/cover Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1515import unicodedata
1616from typing import get_args
1717
18+ import pytest
19+
1820from hypothesis import given , strategies as st
1921from hypothesis .internal import charmap as cm
2022from hypothesis .internal .intervalsets import IntervalSet
@@ -91,6 +93,23 @@ def test_recreate_charmap():
9193 assert x == y
9294
9395
96+ # This test fails flakily (every 1 in ~10 full CI runs), but only on the test-pyodide
97+ # ci job:
98+ #
99+ # os.utime(cm.charmap_file(), (mtime, mtime))
100+ # ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101+ # FileNotFoundError: [Errno 44] No such file or directory:
102+ # '/home/runner/work/hypothesis/hypothesis/.hypothesis/unicode_data/15.1.0/charmap.json.gz'
103+ #
104+ # I suspect this is from a race condition due to how we parallelize the pyodide
105+ # tests in CI, (splitting test files across 20 processes). It's also possible
106+ # it's from some pyodide-specific weirdness, but since the test only fails sometimes,
107+ # I find this less likely.
108+ #
109+ # I'm xfailing this on emscripten for now, to get a consistent green CI.
110+ @pytest .mark .xfail (
111+ condition = sys .platform == "emscripten" , strict = False , reason = "see comment"
112+ )
94113@skipif_threading
95114def test_uses_cached_charmap ():
96115 cm .charmap ()
You can’t perform that action at this time.
0 commit comments