We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
platform.invalidate_caches()
1 parent 2c9a01c commit fb133e1Copy full SHA for fb133e1
Lib/test/test_platform.py
@@ -748,14 +748,8 @@ def test_parse_os_release(self):
748
749
class CommandLineTest(unittest.TestCase):
750
def setUp(self):
751
- self.clear_caches()
752
- self.addCleanup(self.clear_caches)
753
-
754
- def clear_caches(self):
755
- platform._platform_cache.clear()
756
- platform._sys_version_cache.clear()
757
- platform._uname_cache = None
758
- platform._os_release_cache = None
+ platform.invalidate_caches()
+ self.addCleanup(platform.invalidate_caches)
759
760
@staticmethod
761
def text_normalize(string):
0 commit comments