Skip to content

test_compileall test getting failed on 3.4 RC #64959

Closed

Description

@vipulb
mannequin
BPO 20760
Nosy @vstinner, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2018-07-02.12:26:20.198>
created_at = <Date 2014-02-24.13:06:34.212>
labels = ['tests']
title = 'test_compileall test getting failed on 3.4 RC'
updated_at = <Date 2018-07-02.12:26:20.196>
user = 'https://bugs.python.org/vipulb'

bugs.python.org fields:

activity = <Date 2018-07-02.12:26:20.196>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2018-07-02.12:26:20.198>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2014-02-24.13:06:34.212>
creator = 'vipulb'
dependencies = []
files = []
hgrepos = []
issue_num = 20760
keywords = []
message_count = 4.0
messages = ['212091', '212092', '216912', '320878']
nosy_count = 4.0
nosy_names = ['vstinner', 'r.david.murray', 'vipulb', 'AapoRantalainen']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue20760'
versions = ['Python 3.4']

Activity

  1. vipulb commented on Feb 24, 2014

    vipulbmannequin
    MannequinAuthor

    Hi,
    I getting python trace when running test_compileall test case

    OS:

    $ uname -a
    Linux vipul-desktop 3.8.13.8 #1 SMP Thu Oct 3 17:54:03 IST 2013 x86_64 x86_64 x86_64 GNU/Linux

    Python Version:

    $ ./bin/python3 -V
    Python 3.4.0rc2

    Output and Error:

    $ ./bin/python3 -m test -v test_compileall
    == CPython 3.4.0rc2 (default, Feb 24 2014, 16:28:23) [GCC 4.7.3]
    ==   Linux-3.8.13.8-x86_64-with-debian-wheezy-sid little-endian
    ==   hash algorithm: siphash24 64bit
    ==   /tmp/test_python_6884
    Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
    [1/1] test_compileall
    test_compiles_as_much_as_possible (test.test_compileall.CommandLineTests) ... ok
    test_d_compile_error (test.test_compileall.CommandLineTests) ... ok
    test_d_runtime_error (test.test_compileall.CommandLineTests) ... ok
    test_d_takes_exactly_one_dir (test.test_compileall.CommandLineTests) ... ok
    test_force (test.test_compileall.CommandLineTests) ... ok
    test_include_bad_file (test.test_compileall.CommandLineTests) ... ok
    test_include_file_no_arg (test.test_compileall.CommandLineTests) ... ok
    test_include_file_with_arg (test.test_compileall.CommandLineTests) ... ok
    test_include_on_stdin (test.test_compileall.CommandLineTests) ... ok
    test_invalid_arg_produces_message (test.test_compileall.CommandLineTests) ... ok
    test_legacy_paths (test.test_compileall.CommandLineTests) ... ok
    test_multiple_dirs (test.test_compileall.CommandLineTests) ... ok
    test_multiple_runs (test.test_compileall.CommandLineTests) ... ok
    test_no_args_compiles_path (test.test_compileall.CommandLineTests) ... ok
    test_no_args_respects_force_flag (test.test_compileall.CommandLineTests) ... FAIL
    test_no_args_respects_quiet_flag (test.test_compileall.CommandLineTests) ... ok
    test_pep3147_paths_doubleoptimize (test.test_compileall.CommandLineTests) ... ok
    test_pep3147_paths_normal (test.test_compileall.CommandLineTests) ... ok
    test_pep3147_paths_optimize (test.test_compileall.CommandLineTests) ... ok
    test_quiet (test.test_compileall.CommandLineTests) ... ok
    test_recursion_control (test.test_compileall.CommandLineTests) ... ok
    test_regexp (test.test_compileall.CommandLineTests) ... ok
    test_compile_files (test.test_compileall.CompileallTests) ... ok
    test_magic_number (test.test_compileall.CompileallTests) ... ok
    test_mtime (test.test_compileall.CompileallTests) ... ok
    test_no_pycache_in_non_package (test.test_compileall.CompileallTests) ... ok
    test_optimize (test.test_compileall.CompileallTests) ... ok
    test_error (test.test_compileall.EncodingTest) ... ok

    ======================================================================
    FAIL: test_no_args_respects_force_flag (test.test_compileall.CommandLineTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/opt/Python3.4/lib/python3.4/test/test_compileall.py", line 194, in test_no_args_respects_force_flag
        self.assertRunOK('-f', PYTHONPATH=self.directory)
      File "/opt/Python3.4/lib/python3.4/test/test_compileall.py", line 144, in assertRunOK
        *self._get_run_args(args), **env_vars)
      File "/opt/Python3.4/lib/python3.4/test/script_helper.py", line 69, in assert_python_ok
        return _assert_python(True, *args, **env_vars)
      File "/opt/Python3.4/lib/python3.4/test/script_helper.py", line 55, in _assert_python
        "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
    AssertionError: Process return code is 1, stderr follows:

    Ran 28 tests in 1.791s

    FAILED (failures=1)
    test test_compileall failed
    1 test failed:
    test_compileall

  2. added
    type-crashA hard crash of the interpreter, possibly with a core dump
    testsTests in the Lib/test dir
    on Feb 24, 2014
  3. vipulb commented on Feb 24, 2014

    vipulbmannequin
    MannequinAuthor

    Linux Distribution: Ubuntu 13.04

  4. removed
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Feb 24, 2014
  5. AapoRantalainen commented on Apr 20, 2014

    AapoRantalainenmannequin
    Mannequin

    I got exactly same trace with Python-3.4.0.

    == CPython 3.4.0 (default, Apr 19 2014, 16:37:49) [GCC 4.2.1]
    == Linux-2.6.28.10-power52-armv7l-with-debian-testing-unstable little-endian

    Btw: My test-directory is writable. (This seems to be duplicate, but is explicitly mentioning non-writable directory: http://bugs.python.org/issue21264 )

  6. vstinner commented on Jul 2, 2018

    @vstinner
    Member

    This issue is 4 years old and has not been seen recently on Linux. Sadly, the issue doesn't contain enough information to fix the bug, so I close it. If you see again the bug on Linux, please open a new issue (and maybe add a reference to this old bug).

  7. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions