summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-24 18:31:27 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-12-24 18:31:27 (GMT)
commit6578dc925ff0a7953ae50c7ac41a81b0bd54762e (patch)
tree664ef0a4ee41d78a05928ba63fd1bcdbc27fbebd /Lib/test
parent75bfd0585b9f197845fd7a429715807175c33e9f (diff)
downloadcpython-6578dc925ff0a7953ae50c7ac41a81b0bd54762e.zip
cpython-6578dc925ff0a7953ae50c7ac41a81b0bd54762e.tar.gz
cpython-6578dc925ff0a7953ae50c7ac41a81b0bd54762e.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_datetime.py2
-rw-r--r--Lib/test/test_descr.py10
-rw-r--r--Lib/test/test_macpath.py1
-rw-r--r--Lib/test/test_ntpath.py2
-rw-r--r--Lib/test/test_shelve.py2
5 files changed, 8 insertions, 9 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index fe52212..25c7716 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -2258,7 +2258,7 @@ class TestDateTimeTZ(TestDateTime, TZInfoBase):
cls = self.theclass
datestr = '0001-02-03'
for ofs in None, zero, plus, minus, unknown:
- for us in 0, 987001:
+ for us in 0, 987001:
d = cls(1, 2, 3, 4, 5, 59, us, tzinfo=ofs)
timestr = '04:05:59' + (us and '.987001' or '')
ofsstr = ofs is not None and d.tzname() or ''
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 0f656c2..8d36fd5 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -3447,7 +3447,7 @@ def test_mutable_bases():
if attr == 'a':
return 2
else:
- return super(C2, self).__getattribute__(attr)
+ return super(C2, self).__getattribute__(attr)
def meth(self):
return 1
class D(C):
@@ -3576,7 +3576,7 @@ def test_mutable_bases_with_failing_mro():
# Immediate subclasses have their mro's adjusted in alphabetical
# order, so E's will get adjusted before adjusting F's fails. We
# check here that E's gets restored.
-
+
E_mro_before = E.__mro__
D_mro_before = D.__mro__
@@ -3610,20 +3610,20 @@ def test_mutable_bases_catch_mro_conflict():
pass
else:
raise TestFailed, "didn't catch MRO conflict"
-
+
def mutable_names():
class C(object):
pass
# C.__module__ could be 'test_descr' or '__main__'
mod = C.__module__
-
+
C.__name__ = 'D'
vereq((C.__module__, C.__name__), (mod, 'D'))
C.__name__ = 'D.E'
vereq((C.__module__, C.__name__), (mod, 'D.E'))
-
+
def test_main():
do_this_first()
diff --git a/Lib/test/test_macpath.py b/Lib/test/test_macpath.py
index 67b1bed..3a3cf04 100644
--- a/Lib/test/test_macpath.py
+++ b/Lib/test/test_macpath.py
@@ -61,4 +61,3 @@ def test_main():
if __name__ == "__main__":
test_main()
-
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 2419844..fdb431a 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -15,7 +15,7 @@ def tester(fn, wantResult):
print " returned: " + str(gotResult)
print ""
errors = errors + 1
-
+
tester('ntpath.splitext("foo.ext")', ('foo', '.ext'))
tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext'))
tester('ntpath.splitext(".ext")', ('', '.ext'))
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py
index 29af82e..e69e311 100644
--- a/Lib/test/test_shelve.py
+++ b/Lib/test/test_shelve.py
@@ -7,7 +7,7 @@ from test import test_support
class TestCase(unittest.TestCase):
fn = "shelftemp.db"
-
+
def test_ascii_file_shelf(self):
try:
s = shelve.open(self.fn, binary=False)