MCPcopy Index your code
hub / github.com/python/cpython / test_unicode_guard_env

Method test_unicode_guard_env

Lib/test/test_regrtest.py:2015–2021  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2013 self.assertRegex(output, regex)
2014
2015 def test_unicode_guard_env(self):
2016 guard = os.environ.get(setup.UNICODE_GUARD_ENV)
2017 self.assertIsNotNone(guard, f"{setup.UNICODE_GUARD_ENV} not set")
2018 if guard.isascii():
2019 # Skip to signify that the env var value was changed by the user;
2020 # possibly to something ASCII to work around Unicode issues.
2021 self.skipTest("Modified guard")
2022
2023 def test_cleanup(self):
2024 dirname = os.path.join(self.tmptestdir, "test_python_123")

Callers

nothing calls this directly

Calls 4

assertIsNotNoneMethod · 0.80
isasciiMethod · 0.80
skipTestMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected