From: Dag Sverre Seljebotn Date: Mon, 14 Dec 2009 10:56:57 +0000 (+0100) Subject: Make tests fail gracefully on missing pstats module X-Git-Tag: 0.12.1~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb3beff493345de3702b3d899942bf4be1cd3a9f;p=cython.git Make tests fail gracefully on missing pstats module --HG-- rename : tests/run/profile_test.pyx => tests/run/pstats_profile_test.pyx --- diff --git a/runtests.py b/runtests.py index b85874a0..12a5f0b4 100644 --- a/runtests.py +++ b/runtests.py @@ -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(): diff --git a/tests/run/profile_test.pyx b/tests/run/pstats_profile_test.pyx similarity index 100% rename from tests/run/profile_test.pyx rename to tests/run/pstats_profile_test.pyx