##// END OF EJS Templates
Override terminal size in doctests to standardise traceback format...
Thomas Kluyver -
Show More
@@ -28,6 +28,8 b' import sys'
28 28 import traceback
29 29 import unittest
30 30
31 from testpath import modified_env
32
31 33 from inspect import getmodule
32 34
33 35 # We are overriding the default doctest runner, so we need to import a few
@@ -587,6 +589,8 b' class IPDocTestRunner(doctest.DocTestRunner,object):'
587 589
588 590 test.globs.update(_ip.user_ns)
589 591
592 # Override terminal size to standardise traceback format
593 with modified_env({'COLUMNS': '80', 'LINES': '24'}):
590 594 return super(IPDocTestRunner,self).run(test,
591 595 compileflags,out,clear_globs)
592 596
General Comments 0
You need to be logged in to leave comments. Login now