issue #508: tests: skip minify_test Py2.4/2.5 for profiler.py.

This commit is contained in:
David Wilson 2019-02-09 22:15:57 +00:00
parent 263f530496
commit 953a910881
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import codecs
import glob
import pprint
import sys
import unittest2
@ -92,8 +93,15 @@ class MitogenCoreTest(testlib.TestCase):
'mwords': mwords,
})
PY_24_25_SKIP = [
# cProfile unsupported on 2.4, 2.6+ syntax is fine here.
'mitogen/profiler.py',
]
def test_minify_all(self):
for name in glob.glob('mitogen/*.py'):
if name in self.PY_24_25_SKIP and sys.version_info < (2, 6):
continue
original = self.read_source(name)
try:
minified = self.func(original)