diff options
| author | Barry Warsaw <barry@python.org> | 1996-12-10 16:27:16 +0000 | 
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 1996-12-10 16:27:16 +0000 | 
| commit | 0f150e41be9d962f8cdfb5e77c9ff3394b84315c (patch) | |
| tree | 717df3fbe8219832662f30ea76b7448741909ce4 | |
| parent | a6b7c7146c22f8076796b188e6cea7d6ff83a692 (diff) | |
| download | cpython-git-0f150e41be9d962f8cdfb5e77c9ff3394b84315c.tar.gz | |
Added test_new.
| -rw-r--r-- | Lib/test/testall.out | 1 | ||||
| -rw-r--r-- | Lib/test/testall.py | 8 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/Lib/test/testall.out b/Lib/test/testall.out index fe4813d63c..412cba430b 100644 --- a/Lib/test/testall.out +++ b/Lib/test/testall.out @@ -180,4 +180,5 @@ test_cmath  test_crypt  Test encryption:  abeTm2pJKypwA  test_dbm +test_new  Passed all tests. diff --git a/Lib/test/testall.py b/Lib/test/testall.py index 4bf0a662cb..b48accc5e8 100644 --- a/Lib/test/testall.py +++ b/Lib/test/testall.py @@ -3,6 +3,7 @@  # It is a good idea to do this whenever you build a new interpreter.  # Remember to add new tests when new features are added! +import sys  from test_support import *  print 'test_grammar' @@ -12,10 +13,13 @@ import test_grammar  for t in ['test_opcodes', 'test_operations', 'test_builtin',  	  'test_exceptions', 'test_types', 'test_math', 'test_time',  	  'test_array', 'test_strop', 'test_md5', 'test_cmath', -	  'test_crypt', 'test_dbm', +	  'test_crypt', 'test_dbm', 'test_new',  	  ]:      print t      unload(t) -    __import__(t, globals(), locals()) +    try: +	__import__(t, globals(), locals()) +    except ImportError, msg: +	sys.stderr.write('%s.  Uninstalled optional module?\n' % msg)  print 'Passed all tests.' | 
