Changeset 391 for python/trunk/Lib/test/test_dircache.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_dircache.py
r2 r391 5 5 6 6 import unittest 7 from test.test_support import run_unittest, TESTFN,import_module7 from test.test_support import run_unittest, import_module 8 8 dircache = import_module('dircache', deprecated=True) 9 9 import os, time, sys, tempfile … … 36 36 ## SUCCESSFUL CASES 37 37 entries = dircache.listdir(self.tempdir) 38 self.assertEqual s(entries, [])38 self.assertEqual(entries, []) 39 39 40 40 # Check that cache is actually caching, not just passing through. 41 self.assert _(dircache.listdir(self.tempdir) is entries)41 self.assertTrue(dircache.listdir(self.tempdir) is entries) 42 42 43 43 # Directories aren't "files" on Windows, and directory mtime has … … 53 53 self.writeTemp("test1") 54 54 entries = dircache.listdir(self.tempdir) 55 self.assertEqual s(entries, ['test1'])56 self.assert _(dircache.listdir(self.tempdir) is entries)55 self.assertEqual(entries, ['test1']) 56 self.assertTrue(dircache.listdir(self.tempdir) is entries) 57 57 58 58 ## UNSUCCESSFUL CASES … … 64 64 lst = ['A', 'test2', 'test_nonexistent'] 65 65 dircache.annotate(self.tempdir, lst) 66 self.assertEqual s(lst, ['A/', 'test2', 'test_nonexistent'])66 self.assertEqual(lst, ['A/', 'test2', 'test_nonexistent']) 67 67 68 68
Note:
See TracChangeset
for help on using the changeset viewer.