MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_unicode_guard_env

Method test_unicode_guard_env

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

Source from the content-addressed store, hash-verified

1981 self.assertRegex(output, regex)
1982
1983 def test_unicode_guard_env(self):
1984 guard = os.environ.get(setup.UNICODE_GUARD_ENV)
1985 self.assertIsNotNone(guard, f"{setup.UNICODE_GUARD_ENV} not set")
1986 if guard.isascii():
1987 # Skip to signify that the env var value was changed by the user;
1988 # possibly to something ASCII to work around Unicode issues.
1989 self.skipTest("Modified guard")
1990
1991 def test_cleanup(self):
1992 dirname = os.path.join(self.tmptestdir, "test_python_123")

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected