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

Method test_string

Lib/test/test_pickletools.py:368–383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

366''', annotate=20)
367
368 def test_string(self):
369 self.check_dis(b"S'abc'\n.", '''\
370 0: S STRING 'abc'
371 7: . STOP
372highest protocol among opcodes = 0
373''')
374 self.check_dis(b'S"abc"\n.', '''\
375 0: S STRING 'abc'
376 7: . STOP
377highest protocol among opcodes = 0
378''')
379 self.check_dis(b"S'\xc3\xb5'\n.", '''\
380 0: S STRING '\\xc3\\xb5'
381 6: . STOP
382highest protocol among opcodes = 0
383''')
384
385 def test_string_without_quotes(self):
386 self.check_dis_error(b"Sabc'\n.", '',

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected