Commits

Michał Górny committed 338e65d

Use relative imports in test loader.

This fixes one of the issues with Python 3.3.

Comments (0)

Files changed (1)

gentoopm/tests/__init__.py

 
 	def loadTestsFromModule(self, mod):
 		if isinstance(mod, str):
-			mod = __import__(mod, fromlist=['.'], level=-1)
+			mod = __import__(mod, fromlist=['.'], level=2)
 		return unittest.TestLoader.loadTestsFromModule(self, mod)
 
 class PackageNames(object):