diff --git a/test/run.py b/test/run.py index d912d634..12aa520e 100755 --- a/test/run.py +++ b/test/run.py @@ -139,7 +139,7 @@ class IntegrationTestCase(object): @property def module_name(self): - return re.sub('.*/|\.py$', '', self.path) + return os.path.splitext(os.path.basename(self.path))[0] @property def line_nr_test(self):