annotate Lib/test/test_al.py @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents f22ed80289d3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
1 #! /usr/bin/env python
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
2 """Whimpy test script for the al module
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
3 Roger E. Masse
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
4 """
46987
f22ed80289d3 Deprecate al/AL for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents: 45631
diff changeset
5 from test.test_support import verbose, import_module
f22ed80289d3 Deprecate al/AL for removal in 3.0.
Brett Cannon <bcannon@gmail.com>
parents: 45631
diff changeset
6 al = import_module('al', deprecated=True)
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
7
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
8 alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4885
diff changeset
9 'newconfig', 'openport', 'queryparams', 'setparams']
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
10
35276
4adbd331d335 Fix all wrong instances of "it's".
Georg Brandl <georg@python.org>
parents: 24442
diff changeset
11 # This is a very unobtrusive test for the existence of the al module and all its
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
12 # attributes. More comprehensive examples can be found in Demo/al
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
13
45631
a55136c78b60 Add test_main() functions to various tests where it was simple to do. Done so
Brett Cannon <bcannon@gmail.com>
parents: 35276
diff changeset
14 def test_main():
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
15 # touch all the attributes of al without doing anything
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
16 if verbose:
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4885
diff changeset
17 print 'Touching al module attributes...'
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
18 for attr in alattrs:
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4885
diff changeset
19 if verbose:
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4885
diff changeset
20 print 'touching: ', attr
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4885
diff changeset
21 getattr(al, attr)
4885
383c6486346f This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
22
45631
a55136c78b60 Add test_main() functions to various tests where it was simple to do. Done so
Brett Cannon <bcannon@gmail.com>
parents: 35276
diff changeset
23
a55136c78b60 Add test_main() functions to various tests where it was simple to do. Done so
Brett Cannon <bcannon@gmail.com>
parents: 35276
diff changeset
24 if __name__ == '__main__':
a55136c78b60 Add test_main() functions to various tests where it was simple to do. Done so
Brett Cannon <bcannon@gmail.com>
parents: 35276
diff changeset
25 test_main()