[pypy-issue] [issue1043] Failures when testing PyPy 1.8

Dirkjan Ochtman tracker at bugs.pypy.org
Mon Feb 13 14:54:49 CET 2012


Dirkjan Ochtman <dirkjan at ochtman.nl> added the comment:

These are the remaining failures, after removing --withoutmod-pyexpat:

======================================================================
FAIL: test_execute_bit_not_copied (test.test_import.ImportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_import.py",
line 110, in test_execute_bit_not_copied
    self.fail("__import__ did not result in creation of "
AssertionError: __import__ did not result in creation of either a .pyc or .pyo file

======================================================================
FAIL: test_basics (test.test_import.PycRewritingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_import.py",
line 323, in test_basics
    self.assertEqual(mod.module_filename, self.compiled_name)
AssertionError:
'/var/tmp/portage/dev-python/pypy-1.8/temp/pytest-0/test_import.py/@test_9604_tmp/unlikely_module_name.py'
!=
'/var/tmp/portage/dev-python/pypy-1.8/temp/pytest-0/test_import.py/@test_9604_tmp/unlikely_module_name.pyc'

======================================================================
FAIL: test_sys_flags (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_sys.py",
line 436, in test_sys_flags
    self.assertEqual(type(getattr(sys.flags, attr)), int, attr)
AssertionError: dont_write_bytecode

----------------------------------------------------------------------
Ran 25 tests in 0.326s

FAILED (failures=1, skipped=8)
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug: WARNING: Make sure the pypy binary is kept inside its tree of files.
debug: WARNING: It is ok to create a symlink to it from somewhere else.
'import site' failed
Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/pypy/tool/pytest/run-script/regrverbose.py",
line 14, in <module>
    indirect_test()
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_sys.py",
line 797, in test_main
    test.test_support.run_unittest(*test_classes)
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_support.py",
line 1140, in run_unittest
    _run_suite(suite)
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_support.py",
line 1094, in _run_suite
    raise TestFailed(err)
TestFailed: Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/pypy-1.8/work/pypy-1.8/lib-python/modified-2.7/test/test_sys.py",
line 436, in test_sys_flags
    self.assertEqual(type(getattr(sys.flags, attr)), int, attr)
AssertionError: dont_write_bytecode

This likely happens because we run the test suite with the
PYTHONDONTWRITEBYTECODE environment variable set. It would be nice if that
didn't result in test failures.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1043>
________________________________________


More information about the pypy-issue mailing list