summaryrefslogtreecommitdiff
path: root/Cython/Compiler/Tests
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-03-22 14:55:23 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-03-22 14:55:23 +0100
commit9a59133d1ba44109a07883ba01a54d70acc5dc8d (patch)
treedd7ab9da1938a26de52a388982549beacec5125f /Cython/Compiler/Tests
parenta4893ddbffdbf694ae333800238bb310639fa9d6 (diff)
downloadcython-9a59133d1ba44109a07883ba01a54d70acc5dc8d.tar.gz
remove some legacy Py2.[345] code
Diffstat (limited to 'Cython/Compiler/Tests')
-rw-r--r--Cython/Compiler/Tests/TestParseTreeTransforms.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Cython/Compiler/Tests/TestParseTreeTransforms.py b/Cython/Compiler/Tests/TestParseTreeTransforms.py
index b7cd0ee54..3cc470095 100644
--- a/Cython/Compiler/Tests/TestParseTreeTransforms.py
+++ b/Cython/Compiler/Tests/TestParseTreeTransforms.py
@@ -1,6 +1,5 @@
import os
-from Cython.Compiler import CmdLine
from Cython.TestUtils import TransformTest
from Cython.Compiler.ParseTreeTransforms import *
from Cython.Compiler.Nodes import *
@@ -203,18 +202,18 @@ class TestInterpretCompilerDirectives(TransformTest):
# TODO: Re-enable once they're more robust.
-if sys.version_info[:2] >= (2, 5) and False:
+if False:
from Cython.Debugger import DebugWriter
from Cython.Debugger.Tests.TestLibCython import DebuggerTestCase
else:
# skip test, don't let it inherit unittest.TestCase
DebuggerTestCase = object
+
class TestDebugTransform(DebuggerTestCase):
def elem_hasattrs(self, elem, attrs):
- # we shall supporteth python 2.3 !
- return all([attr in elem.attrib for attr in attrs])
+ return all(attr in elem.attrib for attr in attrs)
def test_debug_info(self):
try: