[Python-checkins] python/dist/src/Lib unittest.py, 1.24.6.1, 1.24.6.2

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Sep 16 00:55:34 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv27701

Modified Files:
      Tag: release23-maint
	unittest.py 
Log Message:
Backport addition of the __all__ attribute for unittest.py



Index: unittest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v
retrieving revision 1.24.6.1
retrieving revision 1.24.6.2
diff -C2 -d -r1.24.6.1 -r1.24.6.2
*** unittest.py	13 Sep 2003 02:59:00 -0000	1.24.6.1
--- unittest.py	16 Sep 2003 04:55:32 -0000	1.24.6.2
***************
*** 57,60 ****
--- 57,70 ----
  
  ##############################################################################
+ # Exported classes and functions
+ ##############################################################################
+ __all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner',
+            'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader']
+ 
+ # Expose obsolete functions for backwards compatability
+ __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])
+ 
+ 
+ ##############################################################################
  # Test framework core
  ##############################################################################





More information about the Python-checkins mailing list