Skip to content

Commit 8026a79

Browse files
committed
Re-enable ghostwriter test
1 parent 6a169fb commit 8026a79

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hypothesis-python/tests/ghostwriter/test_ghostwriter_cli.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@
1414
import operator
1515
import re
1616
import subprocess
17+
import sys
1718

1819
import pytest
1920

21+
from hypothesis import strategies as st
2022
from hypothesis.errors import StopTest
2123
from hypothesis.extra.ghostwriter import (
2224
binary_operation,
2325
equivalent,
2426
fuzz,
2527
idempotent,
28+
magic,
2629
roundtrip,
2730
)
2831

@@ -49,7 +52,11 @@ def run(cmd, *, cwd=None):
4952
lambda: roundtrip(json.loads, json.dumps, except_=ValueError),
5053
),
5154
# Imports submodule (importlib.import_module passes; __import__ fails)
52-
("hypothesis.errors.StopTest", lambda: fuzz(StopTest)),
55+
pytest.param(
56+
"hypothesis.strategies",
57+
lambda: magic(st),
58+
marks=pytest.mark.skipif(sys.version_info[:2] != (3, 10)),
59+
),
5360
# We can write tests for classes even without classmethods or staticmethods
5461
("hypothesis.errors.StopTest", lambda: fuzz(StopTest)),
5562
# Search for identity element does not print e.g. "You can use @seed ..."

0 commit comments

Comments
 (0)