From fb3beff493345de3702b3d899942bf4be1cd3a9f Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Mon, 14 Dec 2009 11:56:57 +0100 Subject: [PATCH] Make tests fail gracefully on missing pstats module --HG-- rename : tests/run/profile_test.pyx => tests/run/pstats_profile_test.pyx --- runtests.py | 3 ++- tests/run/{profile_test.pyx => pstats_profile_test.pyx} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename tests/run/{profile_test.pyx => pstats_profile_test.pyx} (100%) 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 -- 2.26.2