Skip to content

Commit

Permalink
Fix flaky test (#2)
Browse files Browse the repository at this point in the history
A test fails the match condition on this regex sometimes, by displaying only "ok" in the output. Not on every run, it smells like a race condition. It seems harmless enough, though, since the test reporting "ok" obviously succeeds.
  • Loading branch information
Gilles Dubuc authored and delfick committed May 25, 2016
1 parent bc5469f commit 681017e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_running_nose.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
test_folder = os.path.join(this_folder, "examples", "test_examples")

regexes = {
"test_result": re.compile(r'((?P<name>[^ ]+) \((?P<home>[^\)]+)\)|(?P<full_test>[^ ]+)) ... ok')
"test_result": re.compile(r'((?P<name>[^ ]+) \((?P<home>[^\)]+)\)|(?P<full_test>[^ ]+))( ... )?ok')
}

describe TestCase, "Running nose":
Expand Down

0 comments on commit 681017e

Please sign in to comment.