tests/test-verify-repo-operations.py
changeset 28499 8b90367c4cf3
parent 28279 c1fbc92d6238
child 43076 2372284d9457
--- a/tests/test-verify-repo-operations.py	Fri Jan 29 14:37:16 2016 +0000
+++ b/tests/test-verify-repo-operations.py	Fri Mar 11 11:44:03 2016 -0800
@@ -7,8 +7,14 @@
 unexpected errors and to compare different versions of it."""
 
 import os
+import subprocess
 import sys
 
+# Only run if slow tests are allowed
+if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'],
+                    'slow']):
+    sys.exit(80)
+
 # These tests require Hypothesis and pytz to be installed.
 # Running 'pip install hypothesis pytz' will achieve that.
 # Note: This won't work if you're running Python < 2.7.