Skip to content

Commit 5cd0535

Browse files
authored
testing: temporarily disable test due to hypothesis issue (#11836)
Ref: #11825 (comment)
1 parent 0f5aa5a commit 5cd0535

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

testing/python/metafunc.py

+12-11
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
from typing import Tuple
1414
from typing import Union
1515

16-
import hypothesis
17-
from hypothesis import strategies
18-
1916
import pytest
2017
from _pytest import fixtures
2118
from _pytest import python
@@ -27,6 +24,9 @@
2724
from _pytest.python import IdMaker
2825
from _pytest.scope import Scope
2926

27+
# import hypothesis
28+
# from hypothesis import strategies
29+
3030

3131
class TestMetafunc:
3232
def Metafunc(self, func, config=None) -> python.Metafunc:
@@ -292,14 +292,15 @@ class A:
292292
assert metafunc._calls[2].id == "x1-a"
293293
assert metafunc._calls[3].id == "x1-b"
294294

295-
@hypothesis.given(strategies.text() | strategies.binary())
296-
@hypothesis.settings(
297-
deadline=400.0
298-
) # very close to std deadline and CI boxes are not reliable in CPU power
299-
def test_idval_hypothesis(self, value) -> None:
300-
escaped = IdMaker([], [], None, None, None, None, None)._idval(value, "a", 6)
301-
assert isinstance(escaped, str)
302-
escaped.encode("ascii")
295+
# TODO: Uncomment - https://github.com/HypothesisWorks/hypothesis/pull/3849
296+
# @hypothesis.given(strategies.text() | strategies.binary())
297+
# @hypothesis.settings(
298+
# deadline=400.0
299+
# ) # very close to std deadline and CI boxes are not reliable in CPU power
300+
# def test_idval_hypothesis(self, value) -> None:
301+
# escaped = IdMaker([], [], None, None, None, None, None)._idval(value, "a", 6)
302+
# assert isinstance(escaped, str)
303+
# escaped.encode("ascii")
303304

304305
def test_unicode_idval(self) -> None:
305306
"""Test that Unicode strings outside the ASCII character set get

0 commit comments

Comments
 (0)