hide __qualname__ and name modules again...

due to recent grammar change
This commit is contained in:
rocky
2020-02-06 03:19:56 -05:00
parent 9166fb54a1
commit e41cd9be84
4 changed files with 250 additions and 91 deletions

View File

@@ -79,6 +79,7 @@ SKIP_TESTS=(
[test_zipfile64.py]=1 # Runs ok but takes 204 seconds [test_zipfile64.py]=1 # Runs ok but takes 204 seconds
[test_zlib]=1 # fails on its own [test_zlib]=1 # fails on its own
) )
# About 265 tests in 14 minutes
if (( batch )) ; then if (( batch )) ; then
SKIP_TESTS[test_doctest.py]=1 # Fails on ppc64le SKIP_TESTS[test_doctest.py]=1 # Fails on ppc64le

View File

@@ -1,58 +1,52 @@
SKIP_TESTS=( SKIP_TESTS=(
[test_urllib2.py]=1 # FIXME: works on uncompyle6
[test_generators.py]=1 # Investigate improper lamdba with bogus "False" added
[test_grammar.py]=1 # investigate: like above: semantic rule missing probably
[test___all__.py]=1 # it fails on its own [test___all__.py]=1 # it fails on its own
[test_argparse.py]=1 #- it fails on its own [test_argparse.py]=1 #- it fails on its own
[test_asdl_parser.py]=1 # it fails on its own [test_asdl_parser.py]=1 # it fails on its own
[test_ast.py]=1 # Depends on comments in code
[test_atexit.py]=1 # The atexit test looks for specific comments in error lines [test_atexit.py]=1 # The atexit test looks for specific comments in error lines
[test_baseexception.py]=1 # UnboundLocalError: local variable 'exc' referenced before assignment [test_baseexception.py]=1 # UnboundLocalError: local variable 'exc' referenced before assignment
[test_bdb.py]=1 # [test_bdb.py]=1 #
[test_buffer.py]=1 # test assertion errors [test_buffer.py]=1 # parse error
[test_builtin.py]=1 # parse error, but decompyle3 doesn't have this. (It has test assert failures though)
[test_clinic.py]=1 # it fails on its own [test_clinic.py]=1 # it fails on its own
[test_cmath.py]=1 # test assertion failure [test_cmath.py]=1 # test assertion failure
[test_cmd_line.py]=1 # Interactive? [test_cmd_line.py]=1 # Interactive?
[test_cmd_line_script.py]=1 [test_cmd_line_script.py]=1
[test_compare.py]=1 # Weird test assert faiure AssertionError: [1] == [1]
[test_compileall.py]=1 # fails on its own [test_compileall.py]=1 # fails on its own
[test_compile.py]=1 # Code introspects on co_consts in a non-decompilable way [test_compile.py]=1 # Code introspects on co_consts in a non-decompilable way
[test_concurrent_futures.py]=1 # too long [test_concurrent_futures.py]=1 # too long
[test_context.py]=1
[test_coroutines.py]=1 # Investigate: Parse error - async/yield stuff? [test_coroutines.py]=1 # Investigate: Parse error - async/yield stuff?
[test_codecs.py]=1 # test assert failures; encoding/decoding stuff [test_codecs.py]=1 # test assert failures; encoding/decoding stuff
[test_ctypes.py]=1 # it fails on its own [test_ctypes.py]=1 # it fails on its own
[test_curses.py]=1 # probably byte string not handled properly [test_curses.py]=1 # probably byte string not handled properly
[test_dataclasses.py]=1 # FIXME: control flow probably: AssertionError: unknown result 'exception' [test_dataclasses.py]=1 # FIXME: control flow probably: AssertionError: unknown result 'exception'
[test_datetime.py]=1 # Takes too long [test_datetime.py]=1 # Takes too long
[test_dbm_gnu.py]=1 # Takes too long
[test_dbm_ndbm.py]=1 # it fails on its own [test_dbm_ndbm.py]=1 # it fails on its own
[test_decimal.py]=1 # test assertion failures [test_decimal.py]=1 # parse error
[test_descr.py]=1 # test assertion failures [test_descr.py]=1 # test assertion failures
[test_devpoll.py]=1 # it fails on its own [test_devpoll.py]=1 # it fails on its own
[test_dis.py]=1 # We change line numbers - duh! [test_dis.py]=1 # Investigate async out of place. Then We change line numbers - duh!
[test_doctest2.py]=1 # FIXME: assert failure - works on decompyle3 [test_doctest.py]=1 # test failures
[test_docxmlrpc.py]=1 [test_docxmlrpc.py]=1
[test_enum.py]=1 # probably bad control flow [test_enum.py]=1 # probably bad control flow
[test_faulthandler.py]=1 # takes too long [test_faulthandler.py]=1 # test takes too long before decompiling
[test_fcntl.py]=1
[test_fileinput.py]=1 # Test assertion failures [test_fileinput.py]=1 # Test assertion failures
[test_format.py]=1 # Probably not handling bytestrings properly
[test_frame.py]=1 # test assertion errors [test_frame.py]=1 # test assertion errors
[test_ftplib.py]=1 # parse error [test_ftplib.py]=1 # parse error
[test_fstring.py]=1 # need to disambiguate leading fstrings from docstrings [test_fstring.py]=1 # need to disambiguate leading fstrings from docstrings
[test_functools.py]=1 # parse error [test_functools.py]=1 # parse error
[test_gdb.py]=1 # it fails on its own [test_gdb.py]=1 # it fails on its own
[test_generators.py]=1 # Investigate improper lamdba with bogus "False" added
[test_glob.py]=1 # TypeError: join() argument must be str or bytes, not 'tuple' [test_glob.py]=1 # TypeError: join() argument must be str or bytes, not 'tuple'
[test_grammar.py]=1 # investigate: index out of range in decompiler (template_engine?)
[test_grp.py]=1 # Doesn't terminate (killed) [test_grp.py]=1 # Doesn't terminate (killed)
[test_hashlib.py]=1 # test assert failures
[test_imaplib-3.7.py]=1 # test assert failures [test_imaplib.py]=1 # test run loops before decompiling? More than 15 seconds to run
[test_idle.py]=1 # Probably installation specific
[test_io.py]=1 # test takes too long to run: 37 seconds [test_io.py]=1 # test takes too long to run: 37 seconds
[test_imaplib.py]=1 # test assert failures [test_imaplib.py]=1 # decompiled test loops - killing after 15 seconds
[test_inspect.py]=1 # Investigate test failures involving lambda [test_inspect.py]=1 # Investigate test failures involving lambda
[test_kqueue.py]=1 # it fails on its own [test_kqueue.py]=1 # it fails on its own
@@ -61,79 +55,62 @@ SKIP_TESTS=(
[test_long.py]=1 # FIX: if boundaries wrong in Rat __init__ [test_long.py]=1 # FIX: if boundaries wrong in Rat __init__
[test_logging.py]=1 # test takes too long to run: 20 seconds [test_logging.py]=1 # test takes too long to run: 20 seconds
[test_mailbox.py]=1 [test_mailbox.py]=1 # probably control flow
[test_marshal.py]=1
[test_math.py]=1 # test assert failures [test_math.py]=1 # test assert failures
[test_modulefinder.py]=1 [test_msilib.py]=1 # it fails on its own
[test_msilib.py]=1
[test_multiprocessing_fork.py]=1 # test takes too long to run: 62 seconds [test_multiprocessing_fork.py]=1 # test takes too long to run: 62 seconds
[test_multiprocessing_forkserver.py]=1 [test_multiprocessing_forkserver.py]=1
[test_multiprocessing_spawn.py]=1 [test_multiprocessing_spawn.py]=1
[test_normalization.py]=1 # probably control flow (uninitialized variable) [test_nntplib.py]=1 # Too long in running before decomplation takes 25 seconds
[test_nntplib.py]=1
[test_optparse.py]=1 # doesn't terminate at test_consume_separator_stop_at_option [test_optparse.py]=1 # doesn't terminate at test_consume_separator_stop_at_option
[test_os.py]=1 # probably control flow (uninitialized variable)
[test_ossaudiodev.py]=1 # it fails on its own [test_ossaudiodev.py]=1 # it fails on its own
[test_pdb.py]=1 # Probably relies on comments [test_pdb.py]=1 # Probably relies on comments
[test_peepholer.py]=1 # test assert error [test_peepholer.py]=1 # test assert error
[test_pickle.py]=1 # Probably relies on comments
[test_poll.py]=1
[test_poplib.py]=1
[test_pydoc.py]=1 # it fails on its own
[test_runpy.py]=1 #
[test_pkg.py]=1 # Investigate: lists differ [test_pkg.py]=1 # Investigate: lists differ
[test_pkgutil.py]=1 # Investigate: [test_pkgutil.py]=1 # Investigate:
[test_platform.py]=1 # probably control flow: uninitialized variable [test_poll.py]=1 # Takes too long to run before decompiling 11 seconds
[test_pow.py]=1 # probably control flow: test assertion failure
[test_pwd.py]=1 # killing - doesn't terminate [test_pwd.py]=1 # killing - doesn't terminate
[test_pydoc.py]=1 # it fails on its own
[test_regrtest.py]=1 # lists differ [test_regrtest.py]=1 # lists differ
[test_re.py]=1 # test assertion error
[test_richcmp.py]=1 # parse error [test_richcmp.py]=1 # parse error
[test_runpy.py]=1 # Too long to run before decompiling
[test_select.py]=1 # test takes too long to run: 11 seconds [test_select.py]=1 # test takes too long to run: 11 seconds
[test_selectors.py]=1 [test_selectors.py]=1 # Takes too long to run before decompling: 17 seconds
[test_shutil.py]=1 # fails on its own [test_shutil.py]=1 # fails on its own
[test_signal.py]=1 # [test_signal.py]=1 # Takes too long to run before decompiling: 22 seconds
[test_slice.py]=1 # test assert error in data; Investigate [test_smtplib.py]=1 # test failures
[test_smtplib.py]=1 # [test_socket.py]=1 # Takes too long to run before decompiling
[test_socket.py]=1 [test_ssl.py]=1 # Takes too long to run more than 15 seconds. Probably control flow; unintialized variable
[test_socketserver.py]=1
[test_sort.py]=1 # Probably control flow; unintialized varaible
[test_ssl.py]=1 # Probably control flow; unintialized varaible
[test_startfile.py]=1 # it fails on its own [test_startfile.py]=1 # it fails on its own
[test_statistics.py]=1 # Probably control flow; unintialized varaible [test_strptime.py]=1 # parfse error
[test_string_literals.py]=1 # Investigate boolean parsing
[test_strptime.py]=1 # test assertions failed
[test_strtod.py]=1 # test assertions failed [test_strtod.py]=1 # test assertions failed
[test_structmembers.py]=1 # test assertions failed [test_struct.py]=1 # probably control flow
[test_struct.py]=1 # test assertions failed [test_subprocess.py]=1 # Takes too long to run before decompile: 25 seconds
[test_subprocess.py]=1
[test_sys_setprofile.py]=1 # test assertions failed
[test_sys_settrace.py]=1 # parse error [test_sys_settrace.py]=1 # parse error
[test_sysconfig.py]=1 # if confused for ifelse in "test_triplet_in_ext_suffix"
[test_tarfile.py]=1 # test assertions failed [test_tarfile.py]=1 # test assertions failed
[test_threading.py]=1 # [test_threading.py]=1 # test assertion failers
[test_timeit.py]=1 # probably control flow uninitialized variable
[test_tk.py]=1 # test takes too long to run: 13 seconds [test_tk.py]=1 # test takes too long to run: 13 seconds
[test_tokenize.py]=1 [test_tokenize.py]=1 # test takes too long to run before decompilation: 43 seconds
[test_trace.py]=1 # it fails on its own [test_trace.py]=1 # it fails on its own
[test_traceback.py]=1 # Probably uses comment for testing [test_traceback.py]=1 # Probably uses comment for testing
[test_tracemalloc.py]=1 # [test_tracemalloc.py]=1 # test assert failres
[test_ttk_guionly.py]=1 # implementation specfic and test takes too long to run: 19 seconds
[test_ttk_guionly.py]=1 # implementation specfic and test takes too long to run: 19 seconds [test_ttk_guionly.py]=1 # implementation specfic and test takes too long to run: 19 seconds
[test_typing.py]=1 # parse error [test_typing.py]=1 # parse error
[test_types.py]=1 # parse error [test_types.py]=1 # parse error
[test_unicode.py]=1 # unicode thing [test_unicode.py]=1 # unicode thing
[test_urllib2_localnet.py]=1 #
[test_urllibnet.py]=1 # probably control flow - uninitialized variable [test_urllibnet.py]=1 # probably control flow - uninitialized variable
[test_weakref.py]=1 # probably control flow - uninitialized variable [test_weakref.py]=1 # probably control flow - uninitialized variable
[test_with.py]=1 # probably control flow - uninitialized variable [test_with.py]=1 # probably control flow - uninitialized variable
[test_winconsoleio.py]=1 # it fails on its own [test_winconsoleio.py]=1 # it fails on its own
[test_winreg.py]=1 # it fails on its own [test_winreg.py]=1 # it fails on its own
[test_winsound.py]=1 # it fails on its own [test_winsound.py]=1 # it fails on its own
@@ -141,11 +118,18 @@ SKIP_TESTS=(
[test_zipfile.py]=1 # it fails on its own [test_zipfile.py]=1 # it fails on its own
[test_zipfile64.py]=1 # Too long to run [test_zipfile64.py]=1 # Too long to run
) )
# 282 unit-test files in about 19 minutes # 306 unit-test files in about 19 minutes
if (( batch )) ; then if (( batch )) ; then
SKIP_TESTS[test_dbm_gnu.py]=1 # fails on its own on POWER
SKIP_TESTS[test_distutils.py]=1 SKIP_TESTS[test_distutils.py]=1
SKIP_TESTS[test_fileio.py]=1 SKIP_TESTS[test_fileio.py]=1
SKIP_TESTS[test_gc.py]=1 SKIP_TESTS[test_gc.py]=1
SKIP_TESTS[test_idle.py]=1 # Probably installation specific
SKIP_TESTS[test_sqlite.py]=1 # fails on its own on POWER
SKIP_TESTS[test_tix.py]=1 # it fails on its own
SKIP_TESTS[test_ttk_textonly.py]=1 # Installation dependent?
SKIP_TESTS[test_venv.py]=1 # Too long to run: 11 seconds
SKIP_TESTS[test_zipimport_support.py]=1 SKIP_TESTS[test_zipimport_support.py]=1
fi fi

View File

@@ -1,166 +1,337 @@
SKIP_TESTS=( SKIP_TESTS=(
[test_time.py]=1 # FIXME: works on uncompyle6?
[test_urllib2.py]=1 # FIXME: works on uncompyle6?
[test_zipimport.py]=1 # FIXME: works on uncompyle6
[test___all__.py]=1 # it fails on its own [test___all__.py]=1 # it fails on its own
[test_aifc.py]=1 # parse error [test_aifc.py]=1 # parse error
[test_argparse.py]=1 #- it fails on its own [test_argparse.py]=1 #- it fails on its own
[test_array.py]=1 #- parse error [test_array.py]=1 #- parse error
[test_asdl_parser.py]=1 # it fails on its own [test_asdl_parser.py]=1 # it fails on its own
[test_ast.py]=1 # Depends on comments in code [test_ast.py]=1 # Depends on comments in code
[test_asyncgen.py]=1 # parse error
[test_asynchat.py]=1 # parse error
[test_asyncore.py]=1 # parse error
[test_atexit.py]=1 # The atexit test looks for specific comments in error lines [test_atexit.py]=1 # The atexit test looks for specific comments in error lines
[test_audioop.py]=1 # test failure
[test_audit.py]=1 # parse error
[test_base64.py]=1 # parse error
[test_baseexception.py]=1 # [test_baseexception.py]=1 #
[test_bigaddrspace.py]=1 # parse error
[test_bigmem.py]=1 # parse error
[test_bdb.py]=1 # [test_bdb.py]=1 #
[test_binascii.py]=1 # test failure
[test_binhex.py]=1 # parse error
[test_binop.py]=1 # parse error
[test_bool.py]=1 # parse error
[test_buffer.py]=1 # parse error [test_buffer.py]=1 # parse error
[test_builtin.py]=1 # parse error [test_builtin.py]=1 # parse error
[test_bytes.py]=1 # parse error
[test_bz2.py]=1 # parse error
[test_calendar.py]=1 # parse error
[test_cgi.py]=1 # parse error
[test_cgitb.py]=1 # parse error
[test_clinic.py]=1 # it fails on its own [test_clinic.py]=1 # it fails on its own
[test_cmath.py]=1 # test assertion failure [test_cmath.py]=1 # test assertion failure
[test_cmd.py]=1 # parse error
[test_cmd_line.py]=1 # Interactive? [test_cmd_line.py]=1 # Interactive?
[test_cmd_line_script.py]=1 [test_cmd_line_script.py]=1
[test_code_module.py]=1 # test failure
[test_codecmaps_cn.py]=1 # test before decompile takes too long to run 135 secs
[test_codecmaps_hk.py]=1 # test before decompile takes too long to run 46 secs
[test_codecs.py]=1 [test_codecs.py]=1
[test_collections.py]=1 [test_collections.py]=1
[test_compare.py]=1 [test_compare.py]=1
[test_compile.py]=1 [test_compile.py]=1
[test_compileall.py]=1 # fails on its own
[test_complex.py]=1 # Investigate
[test_concurrent_futures.py]=1 # too long [test_concurrent_futures.py]=1 # too long
[test_configparser.py]=1 [test_configparser.py]=1
[test_context.py]=1 [test_context.py]=1
[test_contextlib.py]=1 # parse error
[test_contextlib_async.py]=1 # parse error
[test_coroutines.py]=1 # Parse error [test_coroutines.py]=1 # Parse error
[test_codecs.py]=1 [test_cprofile.py]=1 # parse error
[test_compile.py]=1 # Parse error, but after that, the code introspects on co_consts in a non-decompilable way
[test_complex.py]=1 # Investigate
[test_crypt.py]=1 # Parse error [test_crypt.py]=1 # Parse error
[test_csv.py]=1 # Parse error
[test_ctypes.py]=1 # it fails on its own [test_ctypes.py]=1 # it fails on its own
[test_curses.py]=1 # Parse error [test_curses.py]=1 # Parse error
[test_dataclasses.py]=1 # test assertion errors [test_dataclasses.py]=1 # test assertion errors
[test_datetime.py]=1 # Takes too long [test_datetime.py]=1 # Takes too long
[test_dbm.py]=1 # parse error
[test_dbm_dumb.py]=1 # parse error
[test_dbm_gnu.py]=1 # Takes too long [test_dbm_gnu.py]=1 # Takes too long
[test_dbm_ndbm.py]=1 # it fails on its own [test_dbm_ndbm.py]=1 # it fails on its own
[test_decimal.py]=1 # Parse error [test_decimal.py]=1 # Parse error
[test_decorators.py]=1 # parse error
[test_deque.py]=1 # parse error
[test_descr.py]=1 # Parse error [test_descr.py]=1 # Parse error
[test_descrtut.py]=1 # parse error
[test_devpoll.py]=1 # it fails on its own [test_devpoll.py]=1 # it fails on its own
[test_dict.py]=1 # parse error
[test_dictcomps.py]=1 # Bad semantics - Investigate [test_dictcomps.py]=1 # Bad semantics - Investigate
[test_difflib.py]=1 # parse error
[test_dis.py]=1 # We change line numbers - duh! [test_dis.py]=1 # We change line numbers - duh!
[test_doctest.py]=1 # parse error
[test_docxmlrpc.py]=1 [test_docxmlrpc.py]=1
[test_dtrace.py]=1 # parse error
[test_dummy_thread.py]=1 # parse error
[test_exceptions.py]=1 # parse error [test_embed.py]=1 # parse error
[test_enumerate.py]=1 # [test_ensureip.py]=1 #
[test_ensurepip.py]=1 # parse error
[test_enum.py]=1 # [test_enum.py]=1 #
[test_enumerate.py]=1 #
[test_eof.py]=1 # parse error
[test_epoll.py]=1 # parse error
[test_exception_hierarchy.py]=1 # control flow?
[test_exceptions.py]=1 # parse error
[test_faulthandler.py]=1 # takes too long [test_faulthandler.py]=1 # takes too long
[test_fcntl.py]=1 [test_fcntl.py]=1
[test_filecmp.py]=1 # parse error
[test_fileinput.py]=1 [test_fileinput.py]=1
[test_float.py]=1 [test_fileio.py]=1
[test_float.py]=1 # Takes a long time to decompile
[test_flufl.py]=1 # parse error
[test_format.py]=1 [test_format.py]=1
[test_frame.py]=1 [test_frame.py]=1
[test_frozen.py]=1 # parse error
[test_fstring.py]=1 # Investigate [test_fstring.py]=1 # Investigate
[test_ftplib.py]=1 [test_ftplib.py]=1
[test_functools.py]=1 [test_functools.py]=1
[test_future.py]=1 # parse error
[test___future__.py]=1 # test failure
[test_future5.py]=1 # parse error
[test_gc.py]=1 # parse error
[test_gdb.py]=1 # it fails on its own [test_gdb.py]=1 # it fails on its own
[test_genericpath.py]=1 # parse error
[test_generators.py]=1 # improper decompile of assert i < n and (n-i) % 3 == 0 [test_generators.py]=1 # improper decompile of assert i < n and (n-i) % 3 == 0
[test_getpass.py]=1 # parse error
[test_gettext.py]=1 # parse error
[test_glob.py]=1 # [test_glob.py]=1 #
[test_grammar.py]=1 [test_grammar.py]=1
[test_grp.py]=1 # Doesn't terminate (killed) [test_grp.py]=1 # Doesn't terminate (killed)
[test_gzip.py]=1 # parse error [test_gzip.py]=1 # parse error
[test_hashlib.py]=1 # test assert failures [test_hashlib.py]=1 # test assert failures
[test_heapq.py]=1 # test failure
[test_hmac.py]=1 # parse error
[test_httplib.py]=1 # parse error [test_httplib.py]=1 # parse error
[test_http_cookiejar.py]=1 [test_http_cookiejar.py]=1
[test_imaplib-3.7.py]=1 [test_httpservers.py]=1 # parse error
[test_idle.py]=1 # Probably installation specific
[test_imghdr.py]=1 # parse error
[test_imp.py]=1 # parse error
[test_int.py]=1 # parse error
[test_io.py]=1 # test takes too long to run: 37 seconds [test_io.py]=1 # test takes too long to run: 37 seconds
[test_ioctl.py]=1 # parse error
[test_imaplib.py]=1 [test_imaplib.py]=1
[test_ipaddress.py]=1 # parse error
[test_index.py]=1 [test_index.py]=1
[test_inspect.py]=1 [test_inspect.py]=1
[test_iter.py]=1 # parse error
[test_itertools.py]=1 # parse error [test_itertools.py]=1 # parse error
[test_keywordonlyarg.py]=1 # parse error [test_keywordonlyarg.py]=1 # parse error
[test_kqueue.py]=1 # it fails on its own [test_kqueue.py]=1 # it fails on its own
[test__locale.py]=1 # parse error
[test_largefile.py]=1 # parse error
[test_lib2to3.py]=1 # it fails on its own [test_lib2to3.py]=1 # it fails on its own
[test_long.py]=1 # investigate [test_linecache.py]=1 # parse error
[test_lltrace.py]=1 # parse error
[test_locale.py]=1 # parse error
[test_logging.py]=1 # test takes too long to run: 20 seconds [test_logging.py]=1 # test takes too long to run: 20 seconds
[test_long.py]=1 # investigate
[test_lzma.py]=1 # it fails on its own
[test_mailbox.py]=1 [test_mailbox.py]=1 # parse error
[test_mailcap.py]=1 # parse error
[test_marshal.py]=1 [test_marshal.py]=1
[test_math.py]=1 [test_math.py]=1
[test_memoryio.py]=1 # test failure
[test_memoryview.py]=1 # parse error
[test_minidom.py]=1 # test failure
[test_mmap.py]=1 # parse error
[test_modulefinder.py]=1 [test_modulefinder.py]=1
[test_msilib.py]=1 [test_msilib.py]=1
[test_multiprocessing_fork.py]=1 # test takes too long to run: 62 seconds [test_multiprocessing_fork.py]=1 # test takes too long to run: 62 seconds
[test_multiprocessing_forkserver.py]=1 [test_multiprocessing_forkserver.py]=1
[test_multiprocessing_main_handling.py]=1 # parse error
[test_multiprocessing_spawn.py]=1 [test_multiprocessing_spawn.py]=1
[test_named_expressions.py]=1 # parse error
[test_netrc.py]=1 # parse error
[test_nis.py]=1 # break outside of loop
[test_normalization.py]=1 # probably control flow (uninitialized variable) [test_normalization.py]=1 # probably control flow (uninitialized variable)
[test_nntplib.py]=1 [test_nntplib.py]=1
[test_ntpath.py]=1
[test__osx_support.py]=1 # parse error
[test_opcodes.py]=1 # parse error
[test_operator.py]=1 # parse error
[test_optparse.py]=1 # doesn't terminate (killed) [test_optparse.py]=1 # doesn't terminate (killed)
[test_ordered_dict.py]=1 # parse error
[test_os.py]=1 # probably control flow (uninitialized variable) [test_os.py]=1 # probably control flow (uninitialized variable)
[test_ossaudiodev.py]=1 # it fails on its own [test_ossaudiodev.py]=1 # it fails on its own
[test_osx_env.py]=1 # parse error
[test_pathlib.py]=1 # parse error [test_pathlib.py]=1 # parse error
[test_pdb.py]=1 # Probably relies on comments [test_pdb.py]=1 # Probably relies on comments
[test_peepholer.py]=1 # decompile takes a long time; then test assert error [test_peepholer.py]=1 # decompile takes a long time; then test assert error
[test_pickle.py]=1 # Probably relies on comments [test_pickle.py]=1 # Probably relies on comments
[test_poll.py]=1 [test_picklebuffer.py]=1 # parse error
[test_poplib.py]=1 [test_pipes.py]=1 # parse error
[test_pydoc.py]=1 # it fails on its own [test_pkg.py]=1 # Investigate: lists differ
[test_runpy.py]=1 # [test_pkgimport.py]=1 # parse error
[test_pkg.py]=1 # parse error; Investigate: lists differ [test_pkgutil.py]=1 # Investigate:
[test_pkgutil.py]=1 # parse error
[test_platform.py]=1 # parse error [test_platform.py]=1 # parse error
[test_plistlib.py]=1 # parse error
[test_poll.py]=1
[test_popen.py]=1 # parse error
[test_poplib.py]=1 # Parse error
[test_positional_only_arg.py]=1 # test failures
[test_posixpath.py]=1 # parse error
[test_posix.py]=1 # parse error
[test_print.py]=1 # parse error
[test_profile.py]=1 # parse error
[test_pwd.py]=1 # killing - doesn't terminate [test_pwd.py]=1 # killing - doesn't terminate
[test_pulldom.py]=1 # killing - doesn't terminate
[test_py_compile.py]=1 # parse error
[test_pyexpat.py]=1 # parse error
[test_pyclbr.py]=1 # test failure
[test_pydoc.py]=1 # it fails on its own
[test_regrtest.py]=1 # parse error; test assertion error: lists differ [test_queue.py]=1 # parse error
[test_re.py]=1 # parse error; test assertion error
[test_richcmp.py]=1 # Investigate: data[i] index error in semantic handling
[test_raise.py]=1 # parse error
[test_random.py]=1 # parse error
[test_range.py]=1 # parse error
[test_rcompleter.py]=1 # parse error
[test_re.py]=1 # test assertion error
[test_readline.py]=1 # parse error
[test_robotparser.py]=1 # too long to run before decompiling: 31 secs
[test_regrtest.py]=1 # lists differ
[test_reprlib.py]=1 # parse error
[test_resource.py]=1 # parse error
[test_richcmp.py]=1 # parse error
[test_runpy.py]=1 #
[test_sax.py]=1 # parse error
[test_sched.py]=1 # parse error
[test_scope.py]=1 # parse error
[test_script_helper.py]=1 # parse error
[test_select.py]=1 # test takes too long to run: 11 seconds [test_select.py]=1 # test takes too long to run: 11 seconds
[test_selectors.py]=1 [test_selectors.py]=1
[test_set.py]=1 # parse error
[test_shelve.py]=1 # parse error
[test_shlex.py]=1 # probably control flow
[test_shutil.py]=1 # fails on its own [test_shutil.py]=1 # fails on its own
[test_signal.py]=1 # [test_signal.py]=1 #
[test_slice.py]=1 # Investigate: test assertion error [test_site.py]=1 # parse error
[test_slice.py]=1 # Investigate
[test_smtpd.py]=1 # parse error
[test_smtplib.py]=1 # [test_smtplib.py]=1 #
[test_smtpnet.py]=1 # parse error
[test_socket.py]=1 [test_socket.py]=1
[test_socketserver.py]=1 [test_socketserver.py]=1
[test_sort.py]=1 # parse error; [test_sort.py]=1 # Probably control flow; unintialized varaible
[test_ssl.py]=1 # parse error [test_source_encoding.py]=1 # parse error
[test_spwd.py]=1 # parse error
[test_ssl.py]=1 # Probably control flow; unintialized varaible
[test_startfile.py]=1 # it fails on its own [test_startfile.py]=1 # it fails on its own
[test_statistics.py]=1 # Takes more than 15 secs to run. Assert failures [test_stat.py]=1 # test assertions failed
[test_stat.py]=1 # parse error; test assertions failed [test_statistics.py]=1 # Probably control flow; unintialized varaible
[test_string_literals.py]=1 # parse error; Investigate boolean parsing [test_strftime.py]=1 # parse error
[test_string.py]=1 # parse error
[test_string_literals.py]=1 # parse error
[test_strptime.py]=1 # test assertions failed [test_strptime.py]=1 # test assertions failed
[test_strtod.py]=1 # test assertions failed [test_strtod.py]=1 # test assertions failed
[test_structmembers.py]=1 # test assertions failed
[test_struct.py]=1 # test assertions failed [test_struct.py]=1 # test assertions failed
[test_structmembers.py]=1 # test assertions failed
[test_subclassinit.py]=1 # parse error
[test_subprocess.py]=1 [test_subprocess.py]=1
[test_super.py]=1 # parse error
[test_support.py]=1 # parse error
[test_symbol.py]=1 # parse error
[test_sys.py]=1 # parse error
[test_sys_setprofile.py]=1 # test assertions failed [test_sys_setprofile.py]=1 # test assertions failed
[test_sys_settrace.py]=1 # parse error [test_sys_settrace.py]=1 # parse error
[test_sysconfig.py]=1 # if confused for ifelse in "test_triplet_in_ext_suffix" [test_sysconfig.py]=1 # parse error
[test_tabnanny.py]=1 # parse error
[test_tarfile.py]=1 # parse error [test_tarfile.py]=1 # parse error
[test_tcl.py]=1 # parse error
[test_telnetlib.py]=1 # parse error
[test_tempfile.py]=1 # parse error
[test_thread.py]=1 # parse error
[test_threaded_import.py]=1 # parse error
[test_threading.py]=1 # [test_threading.py]=1 #
[test_timeit.py]=1 # probably control flow uninitialized variable [test_timeit.py]=1 # probably control flow uninitialized variable
[test_timeout.py]=1 # parse error
[test_tk.py]=1 # test takes too long to run: 13 seconds [test_tk.py]=1 # test takes too long to run: 13 seconds
[test_tokenize.py]=1 [test_tokenize.py]=1
[test_trace.py]=1 # it fails on its own [test_trace.py]=1 # it fails on its own
[test_traceback.py]=1 # Probably uses comment for testing [test_traceback.py]=1 # Probably uses comment for testing
[test_tracemalloc.py]=1 # [test_tracemalloc.py]=1 #
[test_ttk_guionly.py]=1 # implementation specfic and test takes too long to run: 19 seconds [test_ttk_guionly.py]=1 # implementation specfic and test takes too long to run: 19 seconds
[test_typing.py]=1 # parse error [test_turtle_import.py]=1 # parse error
[test_turtle.py]=1 # parse error
[test_types.py]=1 # parse error [test_types.py]=1 # parse error
[test_typing.py]=1 # parse error
[test_ucn.py]=1 # parse error
[test_unicode.py]=1 # unicode thing [test_unicode.py]=1 # unicode thing
[test_unicode_file_functions.py]=1 # parse faiure
[test_unicodedata.py]=1 # test faiure
[test_univnewlines.py]=1 # parse error
[test_urllib.py]=1 # parse error
[test_urllib2.py]=1 # [test_urllib2.py]=1 #
[test_urllib_response.py]=1 # parse error
[test_urllib2_localnet.py]=1 # [test_urllib2_localnet.py]=1 #
[test_urllib2net.py]=1 # parse error
[test_urllibnet.py]=1 # probably control flow - uninitialized variable [test_urllibnet.py]=1 # probably control flow - uninitialized variable
[test_urlparse.py]=1 # parse error
[test_userdict.py]=1 # test failures
[test_userstring.py]=1 # parse error
[test_utf8.py]=1 # parse error
[test_utf8_mode.py]=1 # parse error
[test_uu.py]=1 # parse error
[test_uuid.py]=1 # parse error
[test_venv.py]=1 # parse error
[test_weakref.py]=1 # probably control flow - uninitialized variable [test_weakref.py]=1 # probably control flow - uninitialized variable
[test_weakset.py]=1 # parse error
[test_webbrowser.py]=1 # parse error
[test_with.py]=1 # probably control flow - uninitialized variable [test_with.py]=1 # probably control flow - uninitialized variable
[test_winconsoleio.py]=1 # it fails on its own [test_winconsoleio.py]=1 # it fails on its own
[test_winreg.py]=1 # it fails on its own [test_winreg.py]=1 # it fails on its own
[test_winsound.py]=1 # it fails on its own [test_winsound.py]=1 # it fails on its own
[test_wsgiref.py]=1 # parse error
[test_xml_etree.py]=1 # parse error
[test_xmlrpc.py]=1 # parse error
[test__xxsubinterpreters.py]=1 # parse error
[test_yield_from.py]=1 # parse error
[test_zlib.py]=1 # test looping take more than 15 seconds to run
[test_zipapp.py]=1 # parse error
[test_zipimport_support.py]=1 # parse error
[test_zipfile.py]=1 # it fails on its own [test_zipfile.py]=1 # it fails on its own
[test_zipfile64.py]=1 # [test_zipfile64.py]=1 #
) )
# 268 About unit-test files, in about 11 minutes # 114 test files, Elapsed time about 7 minutes
if (( batch )) ; then
SKIP_TESTS[test_idle.py]=1 # Probably installation specific
SKIP_TESTS[test_tix.py]=1 # fails on its own
SKIP_TESTS[test_ttk_textonly.py]=1 # Installation dependent?
fi

View File

@@ -2260,11 +2260,7 @@ class SourceWalker(GenericASTTraversal, object):
def build_class(self, code): def build_class(self, code):
"""Dump class definition, doc string and class body.""" """Dump class definition, doc string and class body."""
try: assert iscode(code)
assert iscode(code)
except:
from trepan.api import debug; debug()
self.classes.append(self.currentclass) self.classes.append(self.currentclass)
code = Code(code, self.scanner, self.currentclass) code = Code(code, self.scanner, self.currentclass)
@@ -2274,11 +2270,14 @@ class SourceWalker(GenericASTTraversal, object):
code._tokens = None # save memory code._tokens = None # save memory
assert ast == "stmts" assert ast == "stmts"
if ast[0] == "sstmt":
ast[0] = ast[0][0]
first_stmt = ast[0]
if ast[0] == "docstring": if ast[0] == "docstring":
self.println(self.traverse(ast[0])) self.println(self.traverse(ast[0]))
del ast[0] del ast[0]
first_stmt = ast[0]
if 3.0 <= self.version <= 3.3: if 3.0 <= self.version <= 3.3:
try: try:
if first_stmt == "store_locals": if first_stmt == "store_locals":
@@ -2298,6 +2297,10 @@ class SourceWalker(GenericASTTraversal, object):
pass pass
have_qualname = False have_qualname = False
if ast[0] == "sstmt":
ast[0] = ast[0][0]
first_stmt = ast[0]
if self.version < 3.0: if self.version < 3.0:
# Should we ditch this in favor of the "else" case? # Should we ditch this in favor of the "else" case?
qualname = ".".join(self.classes) qualname = ".".join(self.classes)
@@ -2311,7 +2314,7 @@ class SourceWalker(GenericASTTraversal, object):
], ],
) )
# FIXME: is this right now that we've redone the grammar? # FIXME: is this right now that we've redone the grammar?
have_qualname = ast[0][0] == QUAL_NAME have_qualname = ast[0] == QUAL_NAME
else: else:
# Python 3.4+ has constants like 'cmp_to_key.<locals>.K' # Python 3.4+ has constants like 'cmp_to_key.<locals>.K'
# which are not simple classes like the < 3 case. # which are not simple classes like the < 3 case.