Remove sys.version_info checks for python2 and clean some imports.
This commit is contained in:

committed by
Florent Le Coz

parent
b92dac72f3
commit
0e95015410
@@ -15,10 +15,7 @@ class TestOverall(unittest.TestCase):
|
||||
def testModules(self):
|
||||
"""Testing all modules by compiling them"""
|
||||
src = '.%sslixmpp' % os.sep
|
||||
if sys.version_info < (3, 0):
|
||||
rx = re.compile('/[.]svn')
|
||||
else:
|
||||
rx = re.compile('/[.]svn|.*26.*')
|
||||
rx = re.compile('/[.]svn|.*26.*')
|
||||
self.failUnless(compileall.compile_dir(src, rx=rx, quiet=True))
|
||||
|
||||
def testTabNanny(self):
|
||||
|
@@ -24,10 +24,6 @@ from slixmpp.xmlstream.tostring import tostring
|
||||
import unittest
|
||||
|
||||
|
||||
if sys.version_info > (3, 0):
|
||||
unicode = str
|
||||
|
||||
|
||||
class TestJabberRPC(SlixTest):
|
||||
|
||||
def setUp(self):
|
||||
|
Reference in New Issue
Block a user