summaryrefslogtreecommitdiffstats
path: root/Lib/test
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
parent6b95f1d963d3fd2dcc2e84e83b514364e9f52006 (diff)
downloadcpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.zip
cpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.tar.gz
cpython-5d36a55eaa55d34bfaf91135920688d0cbc6fc5f.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_float.py2
-rw-r--r--Lib/test/test_marshal.py12
-rw-r--r--Lib/test/test_posixpath.py4
3 files changed, 9 insertions, 9 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index cf8c094..fb47db8 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -58,7 +58,7 @@ class UnknownFormatTestCase(unittest.TestCase):
'float':float.__getformat__('float')}
float.__setformat__('double', 'unknown')
float.__setformat__('float', 'unknown')
-
+
def tearDown(self):
float.__setformat__('double', self.save_formats['double'])
float.__setformat__('float', self.save_formats['float'])
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)
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index b2d8d40..3984157 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -476,7 +476,7 @@ class PosixPathTest(unittest.TestCase):
self.safe_rmdir(ABSTFN + "/k/y")
self.safe_rmdir(ABSTFN + "/k")
self.safe_rmdir(ABSTFN)
-
+
def test_realpath_resolve_first(self):
# Bug #1213894: The first component of the path, if not absolute,
# must be resolved too.
@@ -487,7 +487,7 @@ class PosixPathTest(unittest.TestCase):
os.mkdir(ABSTFN + "/k")
os.symlink(ABSTFN, ABSTFN + "link")
os.chdir(dirname(ABSTFN))
-
+
base = basename(ABSTFN)
self.assertEqual(realpath(base + "link"), ABSTFN)
self.assertEqual(realpath(base + "link/k"), ABSTFN + "/k")