Skip to content

Commit 8a538cc

Browse files
committed
Revert platform test fix
1 parent 092a1c5 commit 8a538cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_platform.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,14 +762,13 @@ def invoke_platform(self, *flags):
762762
platform._main(args=flags)
763763
return output.getvalue()
764764

765-
@support.force_not_colorized
766765
def test_unknown_flag(self):
767-
output = io.StringIO()
768766
with self.assertRaises(SystemExit):
767+
output = io.StringIO()
769768
# suppress argparse error message
770769
with contextlib.redirect_stderr(output):
771770
_ = self.invoke_platform('--unknown')
772-
self.assertStartsWith(output.getvalue(), "usage: ")
771+
self.assertStartsWith(output, "usage: ")
773772

774773
def test_invocation(self):
775774
flags = (

0 commit comments

Comments
 (0)