tests/config.py
changeset 37 5b0eb4b11940
parent 22 680631f35d83
child 49 08e4dfe1b0cb
--- a/tests/config.py	Wed May 23 11:11:16 2012 +0200
+++ b/tests/config.py	Wed May 23 16:02:53 2012 +0200
@@ -5,6 +5,7 @@
 
 class Config(dict):
     def __init__(self, fname):
-        data = open(fname).read()
+        with open(fname) as f:
+            data = f.read()
         exec(data, dict(), self)