]> granicus.if.org Git - python/commitdiff
Added test_new.
authorBarry Warsaw <barry@python.org>
Tue, 10 Dec 1996 16:27:16 +0000 (16:27 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 10 Dec 1996 16:27:16 +0000 (16:27 +0000)
Lib/test/testall.out
Lib/test/testall.py

index fe4813d63ce4064b4e0c8a715d9496b3d341f414..412cba430b7e6e19016ade66c9246a1dcf246ebf 100644 (file)
@@ -180,4 +180,5 @@ test_cmath
 test_crypt
 Test encryption:  abeTm2pJKypwA
 test_dbm
+test_new
 Passed all tests.
index 4bf0a662cb8e0f3e2c35fa882bd00f306c5ed51c..b48accc5e8d090907752f4861009ff7a62dd1470 100644 (file)
@@ -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.'