remove RessourceWarning from Python3 tests

This commit is contained in:
David Halter
2012-11-20 15:56:15 +01:00
parent 8ce2633c06
commit 1d3ee0237e
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -239,6 +239,7 @@ class ImportPath(object):
source = f.read()
else:
source = current_namespace[0].read()
current_namespace[0].close()
if path.endswith('.py'):
f = modules.Module(path, source)
else: