Author: Armin Rigo <[email protected]>
Branch:
Changeset: r86530:3d655320ad2a
Date: 2016-08-25 12:21 +0200
http://bitbucket.org/pypy/pypy/changeset/3d655320ad2a/
Log: Skip if we can't import hypothesis, e.g. because we're running with
pypy and -A
diff --git a/pypy/objspace/std/test/test_random_attr.py
b/pypy/objspace/std/test/test_random_attr.py
--- a/pypy/objspace/std/test/test_random_attr.py
+++ b/pypy/objspace/std/test/test_random_attr.py
@@ -1,7 +1,10 @@
import pytest
import sys
-from hypothesis import given, strategies, settings
from pypy.tool.pytest.objspace import gettestobjspace
+try:
+ from hypothesis import given, strategies, settings
+except ImportError:
+ pytest.skip("requires hypothesis")
base_initargs = strategies.sampled_from([
("object", (), False),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit