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

Method test_non_str_argument

Lib/test/test_exceptions.py:2108–2113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2106 self.assertEqual(exc.path, None)
2107
2108 def test_non_str_argument(self):
2109 # Issue #15778
2110 with check_warnings(('', BytesWarning), quiet=True):
2111 arg = b'abc'
2112 exc = ImportError(arg)
2113 self.assertEqual(str(arg), str(exc))
2114
2115 def test_copy_pickle(self):
2116 for kwargs in (dict(),

Callers

nothing calls this directly

Calls 3

check_warningsFunction · 0.90
strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected