Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(31029)

Delta Between Two Patch Sets: Lib/test/test_bsddb185.py

Issue 5178: Add context manager for temporary directory
Left Patch Set: Created 8 years, 11 months ago
Right Patch Set: Created 8 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/tempfile.py ('k') | Lib/test/test_bsddb3.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 """Tests for the bsddb185 module. 1 """Tests for the bsddb185 module.
2 2
3 The file 185test.db found in Lib/test/ is for testing purposes with this 3 The file 185test.db found in Lib/test/ is for testing purposes with this
4 testing suite. 4 testing suite.
5 5
6 """ 6 """
7 from test.test_support import run_unittest, findfile, import_module 7 from test.test_support import run_unittest, findfile, import_module
8 import unittest 8 import unittest
9 bsddb185 = import_module('bsddb185', deprecated=True) 9 bsddb185 = import_module('bsddb185', deprecated=True)
10 import anydbm 10 import anydbm
(...skipping 19 matching lines...) Expand all
30 dbfile = os.path.join(tmpdir, "foo.db") 30 dbfile = os.path.join(tmpdir, "foo.db")
31 anydbm.open(dbfile, "c").close() 31 anydbm.open(dbfile, "c").close()
32 ftype = whichdb.whichdb(dbfile) 32 ftype = whichdb.whichdb(dbfile)
33 self.assertNotEqual(ftype, "bsddb185") 33 self.assertNotEqual(ftype, "bsddb185")
34 34
35 def test_main(): 35 def test_main():
36 run_unittest(Bsddb185Tests) 36 run_unittest(Bsddb185Tests)
37 37
38 if __name__ == "__main__": 38 if __name__ == "__main__":
39 test_main() 39 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+