test_rotor.py: New test of the rotor module.
test_*: converted to the new test harness. GvR note! test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness. It must be a timing issue, but I haven't figured it out
yet.
diff --git a/Lib/test/test_xdr.py b/Lib/test/test_xdr.py
index 5d9a139..0cc7a3a 100644
--- a/Lib/test/test_xdr.py
+++ b/Lib/test/test_xdr.py
@@ -1,22 +1,25 @@
+from test_support import verbose
import _xdr
-verbose = 0
-if __name__ == '__main__':
- verbose = 1
-
fd = 8.01
+print '_xdr.pack_float()'
s = _xdr.pack_float(fd)
+if verbose:
+ print `s`
+print '_xdr.unpack_float()'
f = _xdr.unpack_float(s)
-
if verbose:
print f
if int(100*f) <> int(100*fd):
print 'pack_float() <> unpack_float()'
fd = 9900000.9
+print '_xdr.pack_double()'
s = _xdr.pack_double(fd)
+if verbose:
+ print `s`
+print '_xdr.unpack_double()'
f = _xdr.unpack_double(s)
-
if verbose:
print f