Skip to content

Commit

Permalink
Rebuild test suite before each run()
Browse files Browse the repository at this point in the history
`suite` is a generator that is exhausted after run()
  • Loading branch information
ecederstrand authored Oct 24, 2017
1 parent 76321e7 commit edf88b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions concurrencytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,6 @@ def test_me_4(self):
runner.run(suite)

# Run same tests across 4 processes
suite = unittest.TestLoader().loadTestsFromTestCase(SampleTestCase)
concurrent_suite = ConcurrentTestSuite(suite, fork_for_tests(4))
runner.run(concurrent_suite)

0 comments on commit edf88b1

Please sign in to comment.