Skip to content

Commit

Permalink
Re-enable ghostwriter test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Aug 20, 2023
1 parent 6a169fb commit 8026a79
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hypothesis-python/tests/ghostwriter/test_ghostwriter_cli.py
Expand Up @@ -14,15 +14,18 @@
import operator
import re
import subprocess
import sys

import pytest

from hypothesis import strategies as st
from hypothesis.errors import StopTest
from hypothesis.extra.ghostwriter import (
binary_operation,
equivalent,
fuzz,
idempotent,
magic,
roundtrip,
)

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

0 comments on commit 8026a79

Please sign in to comment.