Permalink
Browse files

Fix tests in Python3.

  • Loading branch information...
1 parent 84f9505 commit 82546d776da812065d234fcd785db067dc374592 @legastero legastero committed Aug 25, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 testall.py
  2. +1 −1 tests/test_overall.py
View
@@ -7,7 +7,7 @@
import distutils.core
from glob import glob
-from os.path import splitext, basename, join as pjoin, walk
+from os.path import splitext, basename, join as pjoin
def run_tests():
@@ -18,7 +18,7 @@ def run_tests():
"""
testfiles = ['tests.test_overall']
exclude = ['__init__.py', 'test_overall.py']
- for t in glob(pjoin('.', 'tests', '*.py')):
+ for t in glob(pjoin('tests', '*.py')):
if True not in [t.endswith(ex) for ex in exclude]:
if basename(t).startswith('test_'):
testfiles.append('tests.%s' % splitext(basename(t))[0])
View
@@ -14,7 +14,7 @@ class TestOverall(unittest.TestCase):
def testModules(self):
"""Testing all modules by compiling them"""
- src = '..%ssleekxmpp' % os.sep
+ src = '.%ssleekxmpp' % os.sep
if sys.version_info < (3, 0):
rx = re.compile('/[.]svn')
else:

0 comments on commit 82546d7

Please sign in to comment.