summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
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")