mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #27430 -- Added -b/--buffer option to DiscoverRunner.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f464526388
commit
9e565386d3
14
tests/test_runner_apps/buffer/tests_buffer.py
Normal file
14
tests/test_runner_apps/buffer/tests_buffer.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import sys
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
class WriteToStdoutStderrTestCase(TestCase):
|
||||
def test_pass(self):
|
||||
sys.stderr.write('Write to stderr.')
|
||||
sys.stdout.write('Write to stdout.')
|
||||
self.assertTrue(True)
|
||||
|
||||
def test_fail(self):
|
||||
sys.stderr.write('Write to stderr.')
|
||||
sys.stdout.write('Write to stdout.')
|
||||
self.assertTrue(False)
|
||||
Reference in New Issue
Block a user