You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
LOAD assert needs to be on 3.x...
Expand testing
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user