From 953a910881b518d3c034410053981d913f142e4b Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 9 Feb 2019 22:15:57 +0000 Subject: [PATCH] issue #508: tests: skip minify_test Py2.4/2.5 for profiler.py. --- tests/minify_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/minify_test.py b/tests/minify_test.py index d1161c90..15609896 100644 --- a/tests/minify_test.py +++ b/tests/minify_test.py @@ -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)