LOAD assert needs to be on 3.x...

Expand testing
This commit is contained in:
rocky
2018-03-26 18:11:57 -04:00
parent 1afe1fd943
commit 3d218c84b0
8 changed files with 25 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
# RUNNABLE!
# But if it miscompiles one of the tests may loop forever
# Tests:
# 2.7:
# assert ::= assert_expr jmp_true LOAD_ASSERT RAISE_VARARGS_1
@@ -16,7 +20,7 @@ for method_name in ['a']:
if method_name in ('b',):
method = 'a'
else:
assert 0, "instance installed"
assert True, "instance installed"
methods = 'b'
@@ -25,5 +29,17 @@ for method_name in ['a']:
# if not not do_setlocal:
# raise AssertError
# Hmmm.. this isn't strickly a bug
def getpreferredencoding(do_setlocale=True):
assert not do_setlocale
getpreferredencoding(False)
# From python 3.3 idlelib/PyParse.py
def _study1(i):
while i:
assert i
continue
_study1(False)