remove RessourceWarning from Python3 tests

This commit is contained in:
David Halter committed 2012-11-20 15:56:15 +01:00
1 parent 8ce2633c06
commit 1d3ee0237e
2 files changed
+6 -3

No files matched your search

+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: