summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2012-12-07 22:30:14 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2012-12-07 22:30:14 (GMT)
commit0ee050e090f0acbb3909cf42822a8b86dbafc3c0 (patch)
tree622397d373c16dedbe0bb5e98af5c2ec15405d57 /QMTest
parentfe91cb8242f03fd95187b7c25bde6614d491bc5e (diff)
downloadSCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.zip
SCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.tar.gz
SCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.tar.bz2
Removed some pre-Python 2.4 compatibility code
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons_time.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/QMTest/TestSCons_time.py b/QMTest/TestSCons_time.py
index ce9e0df..4a759c0 100644
--- a/QMTest/TestSCons_time.py
+++ b/QMTest/TestSCons_time.py
@@ -175,26 +175,6 @@ class TestSCons_time(TestCommon):
TestCommon.__init__(self, **kw)
- # Now that the testing object has been set up, check if we should
- # skip the test due to the Python version. We need to be able to
- # import __future__ (which scons-time.py uses for nested scopes)
- # and to handle list comprehensions (just because we're avoiding
- # the old map() and filter() idioms).
-
- try:
- import __future__
- except ImportError:
- version = sys.version.split()[0]
- msg = 'scons-time does not work on Python version %s\n' % version
- self.skip_test(msg)
-
- try:
- eval('[x for x in [1, 2]]')
- except SyntaxError:
- version = sys.version.split()[0]
- msg = 'scons-time does not work on Python version %s\n' % version
- self.skip_test(msg)
-
def archive_split(self, path):
if path[-7:] == '.tar.gz':
return path[:-7], path[-7:]