summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_marshal.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-06-03 22:40:27 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-06-03 22:40:27 (GMT)
commit5d36a55eaa55d34bfaf91135920688d0cbc6fc5f (patch)
tree988a9c2847c26e4667de98e0fe6634e0659a3ba1 /Lib/test/test_marshal.py
parent6b95f1d963d3fd2dcc2e84e83b514364e9f52006 (diff)
downloadcpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.zip
cpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.tar.gz
cpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_marshal.py')
-rw-r--r--Lib/test/test_marshal.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index b66eef5..22cf63d 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -78,26 +78,26 @@ class FloatTestCase(unittest.TestCase):
self.assertEqual(f, got)
# and with version <= 1 (floats marshalled differently then)
s = marshal.dumps(f, 1)
- got = marshal.loads(s)
- self.assertEqual(f, got)
+ got = marshal.loads(s)
+ self.assertEqual(f, got)
n = sys.maxint * 3.7e-250
while n < small:
for expected in (-n, n):
f = float(expected)
-
+
s = marshal.dumps(f)
got = marshal.loads(s)
self.assertEqual(f, got)
-
+
s = marshal.dumps(f, 1)
got = marshal.loads(s)
self.assertEqual(f, got)
-
+
marshal.dump(f, file(test_support.TESTFN, "wb"))
got = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(f, got)
-
+
marshal.dump(f, file(test_support.TESTFN, "wb"), 1)
got = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(f, got)