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

Method test_issue127903

Lib/test/test_str.py:1951–1955  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1949 (b'\xF4'+cb+b'\xBF\xBF').decode, 'utf-8')
1950
1951 def test_issue127903(self):
1952 # gh-127903: ``_copy_characters`` crashes on DEBUG builds when
1953 # there is nothing to copy.
1954 d = datetime.datetime(2013, 11, 10, 14, 20, 59)
1955 self.assertEqual(d.strftime('%z'), '')
1956
1957 def test_issue8271(self):
1958 # Issue #8271: during the decoding of an invalid UTF-8 byte sequence,

Callers

nothing calls this directly

Calls 3

datetimeMethod · 0.80
assertEqualMethod · 0.45
strftimeMethod · 0.45

Tested by

no test coverage detected