tests/hghave.py
branchstable
changeset 25859 1619563959b3
parent 25658 e93036747902
child 26067 8107c308ff22
--- a/tests/hghave.py	Sun Jul 19 18:11:18 2015 +0200
+++ b/tests/hghave.py	Sun Jul 19 15:27:28 2015 +0900
@@ -376,3 +376,7 @@
 @check("py3k", "running with Python 3.x")
 def has_py3k():
     return 3 == sys.version_info[0]
+
+@check("pure", "running with pure Python code")
+def has_pure():
+    return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure"