Commits

Gael Pasgrimaud committed ed1a1a9

avoid warning

  • Participants
  • Parent commits 3e80913

Comments (0)

Files changed (1)

 
     def __init__(self, *args, **kwargs):
         parser = doctest.DocTestParser()
-        doc = open(self.path).read()
+        fd = open(self.path)
+        doc = fd.read()
+        fd.close()
         test = parser.get_doctest(doc, globals(), '', self.path, 0)
         doctest.DocFileCase.__init__(self, test, optionflags=doctest.ELLIPSIS)