##// END OF EJS Templates
Use explicit for loop to find section in testing.
Thomas Kluyver -
Show More
@@ -287,7 +287,12 b' class IPTester(object):'
287 # Assemble call
287 # Assemble call
288 self.call_args = self.runner+self.params
288 self.call_args = self.runner+self.params
289
289
290 sect = [p for p in self.params if p.startswith('IPython')][0]
290 # Find the section we're testing (IPython.foo)
291 for sect in self.params:
292 if sect.startswith('IPython'): break
293 else:
294 raise ValueError("Section not found", self.params)
295
291 if '--with-xunit' in self.call_args:
296 if '--with-xunit' in self.call_args:
292 self.call_args.append('--xunit-file=%s' % path.abspath(sect+'.xunit.xml'))
297 self.call_args.append('--xunit-file=%s' % path.abspath(sect+'.xunit.xml'))
293
298
General Comments 0
You need to be logged in to leave comments. Login now