diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-03-29 04:36:09 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-03-29 04:36:09 (GMT) |
commit | a19a168cccbc61b2a002475dd3b966b50983003e (patch) | |
tree | b1cd5ae6e193619ac8fecc99652813304a4873f0 /Lib/test | |
parent | 301ab7f2d0ae11087512ef3a36beaf4edc3efa0a (diff) | |
download | cpython-a19a168cccbc61b2a002475dd3b966b50983003e.zip cpython-a19a168cccbc61b2a002475dd3b966b50983003e.tar.gz cpython-a19a168cccbc61b2a002475dd3b966b50983003e.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_pty.py | 2 | ||||
-rw-r--r-- | Lib/test/test_zipfile.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 9b95754..b119f62 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -60,7 +60,7 @@ if pid == pty.CHILD: os._exit(3) # After pty.fork(), the child should already be a session leader. - # (on those systems that have that concept.) + # (on those systems that have that concept.) debug("In child, calling os.setsid()") try: os.setsid() diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index 8da74f5..50b8b36 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -10,12 +10,12 @@ def zipTest(f, compression, srccontents): zip.write(srcname, "another.name") zip.write(srcname, srcname) zip.close() - + zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("another.name") zip.close() - + if readData1 != srccontents or readData2 != srccontents: raise TestFailed, "Written data doesn't equal read data." @@ -25,11 +25,11 @@ try: for i in range(0, 1000): fp.write("Test of zipfile line %d.\n" % i) fp.close() - + fp = open(srcname, "rb") writtenData = fp.read() fp.close() - + for file in (zipname, tempfile.TemporaryFile(), StringIO.StringIO()): zipTest(file, zipfile.ZIP_STORED, writtenData) |