Make tests fail gracefully on missing pstats module
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 14 Dec 2009 10:56:57 +0000 (11:56 +0100)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 14 Dec 2009 10:56:57 +0000 (11:56 +0100)
--HG--
rename : tests/run/profile_test.pyx => tests/run/pstats_profile_test.pyx

runtests.py
tests/run/pstats_profile_test.pyx [moved from tests/run/profile_test.pyx with 100% similarity]

index b85874a09359d357dbdaf67e05c0fc3aa0d103f9..12a5f0b4c1a3038f0b0acb90a6d8f8e017acaeb2 100644 (file)
@@ -34,7 +34,8 @@ TEST_RUN_DIRS = ['run', 'pyregr']
 # Lists external modules, and a matcher matching tests
 # which should be excluded if the module is not present.
 EXT_DEP_MODULES = {
-    'numpy' : re.compile('.*\.numpy_.*').match
+    'numpy' : re.compile('.*\.numpy_.*').match,
+    'pstats' : re.compile('.*\.pstats_.*').match
 }
 
 def get_numpy_include_dirs():