Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_compileall test getting failed on 3.4 RC #64959

Closed
vipulb mannequin opened this issue Feb 24, 2014 · 4 comments
Closed

test_compileall test getting failed on 3.4 RC #64959

vipulb mannequin opened this issue Feb 24, 2014 · 4 comments
Labels
tests Tests in the Lib/test dir

Comments

@vipulb
Copy link
Mannequin

vipulb mannequin commented Feb 24, 2014

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']

@vipulb
Copy link
Mannequin Author

vipulb mannequin commented Feb 24, 2014

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

@vipulb vipulb mannequin added type-crash A hard crash of the interpreter, possibly with a core dump tests Tests in the Lib/test dir labels Feb 24, 2014
@vipulb
Copy link
Mannequin Author

vipulb mannequin commented Feb 24, 2014

Linux Distribution: Ubuntu 13.04

@ned-deily ned-deily removed the type-crash A hard crash of the interpreter, possibly with a core dump label Feb 24, 2014
@AapoRantalainen
Copy link
Mannequin

AapoRantalainen mannequin commented Apr 20, 2014

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 )

@vstinner
Copy link
Member

vstinner commented Jul 2, 2018

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).

@vstinner vstinner closed this as completed Jul 2, 2018
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

2 participants