File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import os
2- import copy
31import contextlib
2+ import copy
43import io
54import itertools
5+ import os
66import pickle
77import platform
88import subprocess
99import sys
1010import unittest
11- from textwrap import dedent
1211from unittest import mock
1312
1413from test import support
@@ -750,20 +749,11 @@ def setUp(self):
750749 platform .invalidate_caches ()
751750 self .addCleanup (platform .invalidate_caches )
752751
753- @staticmethod
754- def text_normalize (string ):
755- """Dedent *string* and strip it from its surrounding whitespaces.
756-
757- This method is used by the other utility functions so that any
758- string to write or to match against can be freely indented.
759- """
760- return dedent (string ).strip ()
761-
762752 def invoke_platform (self , * flags ):
763753 output = io .StringIO ()
764754 with contextlib .redirect_stdout (output ):
765755 platform ._main (args = flags )
766- return self . text_normalize ( output .getvalue () )
756+ return output .getvalue ()
767757
768758 def test_unknown_flag (self ):
769759 with self .assertRaises (SystemExit ):
You can’t perform that action at this time.
0 commit comments