mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
14 lines
191 B
Python
14 lines
191 B
Python
|
|
# This probably will be superceeded by the python unittests when that works.
|
|
|
|
import xdrlib
|
|
|
|
p = xdrlib.Packer()
|
|
p.pack_int(1337)
|
|
|
|
d = p.get_buffer()
|
|
|
|
print(d)
|
|
|
|
assert d == b'\x00\x00\x059'
|