Whitespace normalization, plus:

+ test_quopri.py relied on significant trailing spaces.  Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
  Windows doesn't work like it does on Unix).
This commit is contained in:
Tim Peters 2001-07-21 01:41:30 +00:00
parent 3332778f35
commit 87cc0c329e
5 changed files with 19 additions and 19 deletions

View file

@ -31,15 +31,15 @@ class DircacheTests(unittest.TestCase):
os.rmdir(fname)
else:
os.unlink(fname)
def test_listdir(self):
## SUCCESSFUL CASES
entries = dircache.listdir(self.tempdir)
self.assertEquals(entries, [])
# Check that cache is actually caching, not just passing through.
self.assert_(dircache.listdir(self.tempdir) is entries)
self.assert_(dircache.listdir(self.tempdir) is entries)
# Sadly, dircache has the same granularity as stat.mtime, and so
# can't notice any changes that occured within 1 sec of the last
# time it examined a directory.
@ -48,7 +48,7 @@ class DircacheTests(unittest.TestCase):
entries = dircache.listdir(self.tempdir)
self.assertEquals(entries, ['test1'])
self.assert_(dircache.listdir(self.tempdir) is entries)
## UNSUCCESSFUL CASES
self.assertEquals(dircache.listdir(self.tempdir+"_nonexistent"), [])