summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dircache.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-10 21:12:57 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-10 21:12:57 (GMT)
commit0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf (patch)
treea51acc70eca609cdedfe1d87efaf69a9514d9342 /Lib/test/test_dircache.py
parent10f5db6424595f0389ff84e053a12a1b60d73cd2 (diff)
downloadcpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.zip
cpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.tar.gz
cpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.tar.bz2
Deprecate the dircache module for 3.0.
Diffstat (limited to 'Lib/test/test_dircache.py')
-rw-r--r--Lib/test/test_dircache.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_dircache.py b/Lib/test/test_dircache.py
index 68f6fc2..276c52a 100644
--- a/Lib/test/test_dircache.py
+++ b/Lib/test/test_dircache.py
@@ -4,8 +4,9 @@
"""
import unittest
-from test.test_support import run_unittest, TESTFN
-import dircache, os, time, sys, tempfile
+from test.test_support import run_unittest, TESTFN, import_module
+dircache = import_module('dircache', deprecated=True)
+import os, time, sys, tempfile
class DircacheTests(unittest.TestCase):
@@ -66,7 +67,10 @@ class DircacheTests(unittest.TestCase):
def test_main():
- run_unittest(DircacheTests)
+ try:
+ run_unittest(DircacheTests)
+ finally:
+ dircache.reset()
if __name__ == "__main__":