From 0e950154103ba9385b13f76548befa87509995f3 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 16 Aug 2014 22:37:25 +0200 Subject: Remove sys.version_info checks for python2 and clean some imports. --- tests/test_overall.py | 5 +---- tests/test_stanza_xep_0009.py | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/test_overall.py b/tests/test_overall.py index 411ebcdf..3f32913c 100644 --- a/tests/test_overall.py +++ b/tests/test_overall.py @@ -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): diff --git a/tests/test_stanza_xep_0009.py b/tests/test_stanza_xep_0009.py index 4392ca14..f1a61b80 100644 --- a/tests/test_stanza_xep_0009.py +++ b/tests/test_stanza_xep_0009.py @@ -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): -- cgit v1.2.3