mirror of
https://github.com/django/django.git
synced 2025-08-02 01:53:15 +00:00
Fixed #31370 -- Added support for parallel tests with --buffer.
This commit is contained in:
parent
e3bca22e7e
commit
f6713cda89
3 changed files with 17 additions and 19 deletions
|
@ -269,14 +269,6 @@ class DiscoverRunnerTests(SimpleTestCase):
|
|||
with self.assertRaisesMessage(ValueError, msg):
|
||||
DiscoverRunner(pdb=True, parallel=2)
|
||||
|
||||
def test_buffer_with_parallel(self):
|
||||
msg = (
|
||||
'You cannot use -b/--buffer with parallel tests; pass '
|
||||
'--parallel=1 to use it.'
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, msg):
|
||||
DiscoverRunner(buffer=True, parallel=2)
|
||||
|
||||
def test_buffer_mode_test_pass(self):
|
||||
runner = DiscoverRunner(buffer=True, verbose=0)
|
||||
with captured_stdout() as stdout, captured_stderr() as stderr:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue