mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +00:00
Added test_new.
This commit is contained in:
parent
a6b7c7146c
commit
0f150e41be
2 changed files with 7 additions and 2 deletions
|
@ -180,4 +180,5 @@ test_cmath
|
||||||
test_crypt
|
test_crypt
|
||||||
Test encryption: abeTm2pJKypwA
|
Test encryption: abeTm2pJKypwA
|
||||||
test_dbm
|
test_dbm
|
||||||
|
test_new
|
||||||
Passed all tests.
|
Passed all tests.
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# It is a good idea to do this whenever you build a new interpreter.
|
# It is a good idea to do this whenever you build a new interpreter.
|
||||||
# Remember to add new tests when new features are added!
|
# Remember to add new tests when new features are added!
|
||||||
|
|
||||||
|
import sys
|
||||||
from test_support import *
|
from test_support import *
|
||||||
|
|
||||||
print 'test_grammar'
|
print 'test_grammar'
|
||||||
|
@ -12,10 +13,13 @@ import test_grammar
|
||||||
for t in ['test_opcodes', 'test_operations', 'test_builtin',
|
for t in ['test_opcodes', 'test_operations', 'test_builtin',
|
||||||
'test_exceptions', 'test_types', 'test_math', 'test_time',
|
'test_exceptions', 'test_types', 'test_math', 'test_time',
|
||||||
'test_array', 'test_strop', 'test_md5', 'test_cmath',
|
'test_array', 'test_strop', 'test_md5', 'test_cmath',
|
||||||
'test_crypt', 'test_dbm',
|
'test_crypt', 'test_dbm', 'test_new',
|
||||||
]:
|
]:
|
||||||
print t
|
print t
|
||||||
unload(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.'
|
print 'Passed all tests.'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue