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

Method check_fsencoding

Lib/test/test_sys.py:976–980  ·  view source on GitHub ↗
(self, fs_encoding, expected=None)

Source from the content-addressed store, hash-verified

974 self.assertIn(executable, ["b''", repr(sys.executable.encode("ascii", "backslashreplace"))])
975
976 def check_fsencoding(self, fs_encoding, expected=None):
977 self.assertIsNotNone(fs_encoding)
978 codecs.lookup(fs_encoding)
979 if expected:
980 self.assertEqual(fs_encoding, expected)
981
982 def test_getfilesystemencoding(self):
983 fs_encoding = sys.getfilesystemencoding()

Callers 1

Calls 3

assertIsNotNoneMethod · 0.80
lookupMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected