Bypass Python exmples not supported by -builtin
Builtin classes as exceptions not supported, so don't run these aspects of the examples when using -builtin.
This commit is contained in:
parent
da394fae80
commit
808d4b4798
4 changed files with 34 additions and 6 deletions
|
|
@ -1,10 +1,16 @@
|
|||
# file: runme.py
|
||||
import example
|
||||
|
||||
if example.is_python_builtin():
|
||||
print "Skipping example: -builtin option does not support %exceptionclass"
|
||||
exit(0)
|
||||
|
||||
q = example.intQueue(10)
|
||||
|
||||
print "Inserting items into intQueue"
|
||||
|
||||
print type(example.FullError)
|
||||
|
||||
try:
|
||||
for i in range(0,100):
|
||||
q.enqueue(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue