mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-55258: Reenable support test_get_original_stdout() (#139499)
This commit is contained in:
parent
ea4027e179
commit
9bf69659e1
1 changed files with 6 additions and 2 deletions
|
|
@ -96,9 +96,13 @@ class TestSupport(unittest.TestCase):
|
|||
self.test_get_attribute)
|
||||
self.assertRaises(unittest.SkipTest, support.get_attribute, self, "foo")
|
||||
|
||||
@unittest.skip("failing buildbots")
|
||||
def test_get_original_stdout(self):
|
||||
self.assertEqual(support.get_original_stdout(), sys.stdout)
|
||||
if isinstance(sys.stdout, io.StringIO):
|
||||
# gh-55258: When --junit-xml is used, stdout is a StringIO:
|
||||
# use sys.__stdout__ in this case.
|
||||
self.assertEqual(support.get_original_stdout(), sys.__stdout__)
|
||||
else:
|
||||
self.assertEqual(support.get_original_stdout(), sys.stdout)
|
||||
|
||||
def test_unload(self):
|
||||
import sched # noqa: F401
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue