##// END OF EJS Templates
Adjust regexps for random tests
Fernando Perez -
Show More
@@ -257,7 +257,7 b' class IPDoctestOutputChecker(doctest.OutputChecker):'
257 257 output string for flags that tell us to ignore the output.
258 258 """
259 259
260 random_re = re.compile(r'#\s*random')
260 random_re = re.compile(r'#\s*random\s+')
261 261
262 262 def check_output(self, want, got, optionflags):
263 263 """Check output, accepting special markers embedded in the output.
@@ -403,7 +403,7 b' class IPDocTestParser(doctest.DocTestParser):'
403 403 # Mark a test as being fully random. In this case, we simply append the
404 404 # random marker ('#random') to each individual example's output. This way
405 405 # we don't need to modify any other code.
406 _RANDOM_TEST = re.compile(r'#\s*all-random')
406 _RANDOM_TEST = re.compile(r'#\s*all-random\s+')
407 407
408 408 # Mark tests to be executed in an external process - currently unsupported.
409 409 _EXTERNAL_IP = re.compile(r'#\s*ipdoctest:\s*EXTERNAL')
General Comments 0
You need to be logged in to leave comments. Login now