feat: 10865 add test skip for pypy
This commit is contained in:
parent
4806b591fc
commit
d314ea6c77
|
@ -2,6 +2,7 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from typing import Type
|
from typing import Type
|
||||||
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from _pytest.pytester import Pytester
|
from _pytest.pytester import Pytester
|
||||||
|
@ -485,6 +486,12 @@ def test_raise_type_error_on_non_string_warning() -> None:
|
||||||
with pytest.warns(UserWarning):
|
with pytest.warns(UserWarning):
|
||||||
warnings.warn(1) # type: ignore
|
warnings.warn(1) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
hasattr(sys, "pypy_version_info"),
|
||||||
|
reason="Not for pypy",
|
||||||
|
)
|
||||||
|
def test_raise_type_error_on_non_string_warning_cpython() -> None:
|
||||||
# Check that we get the same behavior with the stdlib, at least if filtering
|
# Check that we get the same behavior with the stdlib, at least if filtering
|
||||||
# (see https://github.com/python/cpython/issues/103577 for details)
|
# (see https://github.com/python/cpython/issues/103577 for details)
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
|
|
Loading…
Reference in New Issue