diff options
author | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 (GMT) |
commit | 004d5e6880940ddbb38460986ac62ee0f1bae97d (patch) | |
tree | 682e75e743f5c22206a65ac0262c03ce37e4fbee /Lib/test/test_ntpath.py | |
parent | 2e6d25c5bbf3e2d4f18191c0836b5ed8f94dc850 (diff) | |
download | cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.zip cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.gz cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.bz2 |
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 11f2f44..1b49c03 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -5,16 +5,16 @@ import os errors = 0 def tester(fn, wantResult): - fn = string.replace(fn, "\\", "\\\\") - gotResult = eval(fn) - if wantResult != gotResult: - print "error!" - print "evaluated: " + str(fn) - print "should be: " + str(wantResult) - print " returned: " + str(gotResult) - print "" - global errors - errors = errors + 1 + fn = string.replace(fn, "\\", "\\\\") + gotResult = eval(fn) + if wantResult != gotResult: + print "error!" + print "evaluated: " + str(fn) + print "should be: " + str(wantResult) + print " returned: " + str(gotResult) + print "" + global errors + errors = errors + 1 tester('ntpath.splitdrive("c:\\foo\\bar")', ('c:', '\\foo\\bar')) tester('ntpath.splitunc("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint', '\\foo\\bar')) @@ -45,7 +45,6 @@ tester('ntpath.commonprefix(["/home/swen/spam", "/home/swen/spam"])', "/home/swen/spam") if errors: - print str(errors) + " errors." + print str(errors) + " errors." else: - print "No errors. Thank your lucky stars." - + print "No errors. Thank your lucky stars." |