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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 6 years ago
Right Patch Set: Created 5 years, 10 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/test/test_dbm_gnu.py ('k') | Lib/test/test_epoll.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 #! /usr/bin/env python3
2 """Test script for the dbm.open function based on testdumbdbm.py""" 1 """Test script for the dbm.open function based on testdumbdbm.py"""
3 2
4 import os 3 import os
5 import unittest 4 import unittest
6 import glob 5 import glob
7 import test.support 6 import test.support
8 7
9 # Skip tests if dbm module doesn't exist. 8 # Skip tests if dbm module doesn't exist.
10 dbm = test.support.import_module('dbm') 9 dbm = test.support.import_module('dbm')
11 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 classes.append(type("TestCase-" + mod.__name__, 184 classes.append(type("TestCase-" + mod.__name__,
186 (AnyDBMTestCase, unittest.TestCase), 185 (AnyDBMTestCase, unittest.TestCase),
187 {'module': mod})) 186 {'module': mod}))
188 suites = [unittest.makeSuite(c) for c in classes] 187 suites = [unittest.makeSuite(c) for c in classes]
189 188
190 tests.addTests(suites) 189 tests.addTests(suites)
191 return tests 190 return tests
192 191
193 if __name__ == "__main__": 192 if __name__ == "__main__":
194 unittest.main() 193 unittest.main()
LEFTRIGHT

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