Debian Codegraph @

testing/test_compatibility_regressions.py

raw symbols SCIP
1 from execnet import gateway_base
2
3
4 def test_opcodes() -> None:
5 data = vars(gateway_base.opcode)
6 computed = {k: v for k, v in data.items() if "__" not in k}
7 assert computed == {
8 "BUILDTUPLE": b"@",
9 "BYTES": b"A",
10 "CHANNEL": b"B",
11 "FALSE": b"C",
12 "FLOAT": b"D",
13 "FROZENSET": b"E",
14 "INT": b"F",
15 "LONG": b"G",
16 "LONGINT": b"H",
17 "LONGLONG": b"I",
18 "NEWDICT": b"J",
19 "NEWLIST": b"K",
20 "NONE": b"L",
21 "PY2STRING": b"M",
22 "PY3STRING": b"N",
23 "SET": b"O",
24 "SETITEM": b"P",
25 "STOP": b"Q",
26 "TRUE": b"R",
27 "UNICODE": b"S",
28 # added in 1.4
29 # causes a regression since it was ordered in
30 # between CHANNEL and FALSE as "C" moving the other items
31 "COMPLEX": b"T",
32 }