SourceForge has been redesigned. Learn more.
Close

Diff of /doctest_file.py [32c3f5] .. [361e09]  Maximize  Restore

Switch to side-by-side view

--- a/doctest_file.py
+++ b/doctest_file.py
@@ -21,14 +21,13 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-from __future__ import with_statement
 import os
 import os.path
 import sys
 import doctest
 
 def test(filepath, chdir=False):
-    print "Testing", filepath
+    print("Testing", filepath)
     if chdir:
         dir, base = os.path.split(filepath)
         os.chdir(dir)
@@ -36,9 +35,7 @@
             sys.path.insert(0, '')
     else:
         dir, base = '', filepath
-    sys.exit(doctest.testfile(base, False,
-                              globs={'with_statement': with_statement})
-                    [0])
+    sys.exit(doctest.testfile(base, False)[0])
 
 if __name__ == "__main__":
     test(*sys.argv[1:])