##// END OF EJS Templates
Correctly teardown test case, avoid filehandle leaking.
Matthias Bussonnier -
Show More
@@ -44,6 +44,8 b' pjoin = path.join'
44
44
45
45
46 # Enable printing all warnings raise by IPython's modules
46 # Enable printing all warnings raise by IPython's modules
47 if sys.version_info > (3,0):
48 warnings.filterwarnings('error', message='.*', category=ResourceWarning, module='.*')
47 warnings.filterwarnings('default', message='.*', category=Warning, module='IPy.*')
49 warnings.filterwarnings('default', message='.*', category=Warning, module='IPy.*')
48
50
49 if version_info < (6,):
51 if version_info < (6,):
@@ -132,3 +132,9 b' class Test_ipexec_validate(unittest.TestCase, tt.TempFileMixin):'
132 )
132 )
133 out = "A\r\nB"
133 out = "A\r\nB"
134 tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\r\nD")
134 tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\r\nD")
135
136
137 def tearDown(self):
138 # tear down correctly the mixin,
139 # unittest.TestCase.tearDown does nothing
140 tt.TempFileMixin.tearDown(self)
General Comments 0
You need to be logged in to leave comments. Login now