diff options
author | fijal <unknown> | 2021-09-27 12:38:40 +0200 |
---|---|---|
committer | fijal <unknown> | 2021-09-27 12:38:40 +0200 |
commit | 7ed3eab9f41f3677307704dd6caf8336ad7206b8 (patch) | |
tree | 4e6e59223a242437136b6433a4fad6442c3ff307 | |
parent | write and use StackNew for a cffi helper (diff) | |
download | pypy-7ed3eab9f41f3677307704dd6caf8336ad7206b8.tar.gz pypy-7ed3eab9f41f3677307704dd6caf8336ad7206b8.tar.bz2 pypy-7ed3eab9f41f3677307704dd6caf8336ad7206b8.zip |
write a dumb test, a bit hard to test
-rw-r--r-- | pypy/module/test_lib_pypy/test_pypy_util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pypy/module/test_lib_pypy/test_pypy_util.py b/pypy/module/test_lib_pypy/test_pypy_util.py new file mode 100644 index 0000000000..74e73be69b --- /dev/null +++ b/pypy/module/test_lib_pypy/test_pypy_util.py @@ -0,0 +1,8 @@ + +class AppTestStackNew: + def test_one(self): + from _pypy_util import StackNew + + with StackNew("char[]", 1) as p: + p[0] = b'\x13' + assert p[0] == b'\x13' |