testing: temporarily disable test due to hypothesis issue

Ref: https://github.com/pytest-dev/pytest/pull/11825#issuecomment-1894094641
This commit is contained in:
Ran Benita 2024-01-17 22:35:57 +02:00
parent 0f5aa5a7d2
commit af2cf2b46b
1 changed files with 11 additions and 11 deletions

View File

@ -13,9 +13,6 @@ from typing import Sequence
from typing import Tuple from typing import Tuple
from typing import Union from typing import Union
import hypothesis
from hypothesis import strategies
import pytest import pytest
from _pytest import fixtures from _pytest import fixtures
from _pytest import python from _pytest import python
@ -26,6 +23,8 @@ from _pytest.pytester import Pytester
from _pytest.python import Function from _pytest.python import Function
from _pytest.python import IdMaker from _pytest.python import IdMaker
from _pytest.scope import Scope from _pytest.scope import Scope
# import hypothesis
# from hypothesis import strategies
class TestMetafunc: class TestMetafunc:
@ -292,14 +291,15 @@ class TestMetafunc:
assert metafunc._calls[2].id == "x1-a" assert metafunc._calls[2].id == "x1-a"
assert metafunc._calls[3].id == "x1-b" assert metafunc._calls[3].id == "x1-b"
@hypothesis.given(strategies.text() | strategies.binary()) # TODO: Uncomment - https://github.com/HypothesisWorks/hypothesis/pull/3849
@hypothesis.settings( # @hypothesis.given(strategies.text() | strategies.binary())
deadline=400.0 # @hypothesis.settings(
) # very close to std deadline and CI boxes are not reliable in CPU power # deadline=400.0
def test_idval_hypothesis(self, value) -> None: # ) # very close to std deadline and CI boxes are not reliable in CPU power
escaped = IdMaker([], [], None, None, None, None, None)._idval(value, "a", 6) # def test_idval_hypothesis(self, value) -> None:
assert isinstance(escaped, str) # escaped = IdMaker([], [], None, None, None, None, None)._idval(value, "a", 6)
escaped.encode("ascii") # assert isinstance(escaped, str)
# escaped.encode("ascii")
def test_unicode_idval(self) -> None: def test_unicode_idval(self) -> None:
"""Test that Unicode strings outside the ASCII character set get """Test that Unicode strings outside the ASCII character set get