Ned Deily added the comment: Ah, setting PYTHONDONTWRITEBYTECODE explains it. When running the tests via "make test", python is invoked with -E to avoid issues like that. But here's a patch that skips test_timestamp_overflow if bytecode files cannot be written (Issue20796 documents a similar problem and workaround for test_import).
---------- components: -Macintosh keywords: +patch nosy: +brett.cannon -ronaldoussoren stage: -> patch review title: test_timestamp_overflow fails -> test_timestamp_overflow of test_importlib fails if PYTHONDONTWRITEBYTECODE is set versions: +Python 3.5 Added file: http://bugs.python.org/file42189/issue26583.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26583> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com