mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
undo opaque=fopaque changes; make test script more flexible
This commit is contained in:
parent
81a07ceddc
commit
5e6a3564b0
2 changed files with 6 additions and 5 deletions
|
|
@ -1,15 +1,16 @@
|
|||
: ${PYTHON=python}
|
||||
: ${SERVER=charon.cwi.nl}
|
||||
|
||||
set -xe
|
||||
|
||||
$PYTHON -c 'from rpc import test; test()'
|
||||
$PYTHON -c 'from rpc import test; test()' charon.cwi.nl
|
||||
$PYTHON -c 'from rpc import test; test()' ${SERVER}
|
||||
|
||||
$PYTHON -c 'from rpc import testsvr; testsvr()' &
|
||||
SVR=$!
|
||||
PID=$!
|
||||
sleep 2
|
||||
$PYTHON -c 'from rpc import testclt; testclt()'
|
||||
kill -2 $SVR
|
||||
kill -2 $PID
|
||||
|
||||
$PYTHON -c 'from mountclient import test; test()'
|
||||
$PYTHON -c 'from mountclient import test; test()' gatekeeper.dec.com
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class Packer:
|
|||
self.pack_uint(n)
|
||||
self.pack_fstring(n, s)
|
||||
|
||||
pack_opaque = pack_fopaque
|
||||
pack_opaque = pack_string
|
||||
|
||||
def pack_list(self, list, pack_item):
|
||||
for item in list:
|
||||
|
|
@ -176,7 +176,7 @@ class Unpacker:
|
|||
n = self.unpack_uint()
|
||||
return self.unpack_fstring(n)
|
||||
|
||||
unpack_opaque = unpack_fopaque
|
||||
unpack_opaque = unpack_string
|
||||
|
||||
def unpack_list(self, unpack_item):
|
||||
list = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue