mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #31370 -- Added support for parallel tests with --buffer.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e3bca22e7e
commit
f6713cda89
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user