summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binhex.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-26 19:42:58 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-26 19:42:58 (GMT)
commit41360a4696f488e49e5409b3b1baf1fff6ae0044 (patch)
tree9c9b73b7446cc9fc36e09038bf26d889bb5b6f24 /Lib/test/test_binhex.py
parentcd0f59ea0824ad6f897f05c2db4d4471e47e6063 (diff)
downloadcpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.zip
cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.gz
cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.bz2
Mass check-in after untabifying all files that need it.
Diffstat (limited to 'Lib/test/test_binhex.py')
-rwxr-xr-xLib/test/test_binhex.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py
index aa156d9..fe3843d 100755
--- a/Lib/test/test_binhex.py
+++ b/Lib/test/test_binhex.py
@@ -11,11 +11,11 @@ from test_support import verbose
def test():
try:
- fname1 = tempfile.mktemp()
- fname2 = tempfile.mktemp()
- f = open(fname1, 'w')
+ fname1 = tempfile.mktemp()
+ fname2 = tempfile.mktemp()
+ f = open(fname1, 'w')
except:
- raise ImportError, "Cannot test binascii without a temp file"
+ raise ImportError, "Cannot test binascii without a temp file"
start = 'Jack is my hero'
f.write(start)
@@ -23,24 +23,24 @@ def test():
binhex.binhex(fname1, fname2)
if verbose:
- print 'binhex'
+ print 'binhex'
binhex.hexbin(fname2, fname1)
if verbose:
- print 'hexbin'
+ print 'hexbin'
f = open(fname1, 'r')
finish = f.readline()
if start <> finish:
- print 'Error: binhex <> hexbin'
+ print 'Error: binhex <> hexbin'
elif verbose:
- print 'binhex == hexbin'
+ print 'binhex == hexbin'
try:
- import os
- os.unlink(fname1)
- os.unlink(fname2)
+ import os
+ os.unlink(fname1)
+ os.unlink(fname2)
except:
- pass
+ pass
test()