[New-bugs-announce] [issue20796] Test failures when running with PYTHONDONTWRITEBYTECODE

Chris Angelico report at bugs.python.org
Thu Feb 27 15:32:17 CET 2014


New submission from Chris Angelico:

$ find . -name \*.pyc -delete
$ PYTHONDONTWRITEBYTECODE=1 make test

Three test failures, which all seem to be duplicates of:

======================================================================
FAIL: test_timestamp_overflow (test.test_importlib.source.test_file_loader.Source_SimpleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rosuav/cpython/Lib/test/test_importlib/source/test_file_loader.py", line 215, in test_timestamp_overflow
    self.assertTrue(os.path.exists(compiled))
AssertionError: False is not true

----------------------------------------------------------------------


It goes looking for the .pyc cached file, does not find it, and fails. Test should probably be skipped if bytecode isn't being written.

----------
messages: 212356
nosy: Rosuav
priority: normal
severity: normal
status: open
title: Test failures when running with PYTHONDONTWRITEBYTECODE

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20796>
_______________________________________


More information about the New-bugs-announce mailing list