[Python-checkins] CVS: python/dist/src/Lib/test test___all__.py,1.9,1.10

Skip Montanaro montanaro@users.sourceforge.net
Wed, 07 Feb 2001 14:46:57 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17249

Modified Files:
	test___all__.py 
Log Message:
test for presence of __builtins__ in names before deleting it, enabling this
to work with Jython (ugh! I hate that name!).  This closes patch 103665.



Index: test___all__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___all__.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** test___all__.py	2001/02/06 01:07:02	1.9
--- test___all__.py	2001/02/07 22:46:55	1.10
***************
*** 14,18 ****
      names = {}
      exec "from %s import *" % modname in names
!     del names["__builtins__"]
      keys = names.keys()
      keys.sort()
--- 14,19 ----
      names = {}
      exec "from %s import *" % modname in names
!     if names.has_key("__builtins__"):
!         del names["__builtins__"]
      keys = names.keys()
      keys.sort()