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

Method test_string

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

Source from the content-addressed store, hash-verified

390''', annotate=20)
391
392 def test_string(self):
393 self.check_dis(b"S'abc'\n.", '''\
394 0: S STRING 'abc'
395 7: . STOP
396highest protocol among opcodes = 0
397''')
398 self.check_dis(b'S"abc"\n.', '''\
399 0: S STRING 'abc'
400 7: . STOP
401highest protocol among opcodes = 0
402''')
403 self.check_dis(b"S'\xc3\xb5'\n.", '''\
404 0: S STRING '\\xc3\\xb5'
405 6: . STOP
406highest protocol among opcodes = 0
407''')
408
409 def test_string_without_quotes(self):
410 self.check_dis_error(b"Sabc'\n.", '',

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected