[pypy-issue] [issue1043] Failures when testing PyPy 1.8
Dirkjan Ochtman
tracker at bugs.pypy.org
Sun Feb 12 21:51:55 CET 2012
New submission from Dirkjan Ochtman <dirkjan at ochtman.nl>:
I was trying to package 1.8. Working okay, but there are some test failures.
Attaching here for posterity.
----------
files: failures.txt
messages: 3904
nosy: djc, pypy-issue
priority: bug
status: unread
title: Failures when testing PyPy 1.8
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1043>
________________________________________
-------------- next part --------------
=================================== FAILURES ===================================
_______________________________________ _______________________________________
test_case_sensitivity (test.test_import.ImportTests) ... ok
test_double_const (test.test_import.ImportTests) ... ok
test_execute_bit_not_copied (test.test_import.ImportTests) ... FAIL
test_failing_import_sticks (test.test_import.ImportTests) ... ok
test_failing_reload (test.test_import.ImportTests) ... ok
test_imp_module (test.test_import.ImportTests) ... ok
test_import (test.test_import.ImportTests) ... ok
test_import_by_filename (test.test_import.ImportTests) ... ok
test_import_in_del_does_not_crash (test.test_import.ImportTests) ... ok
test_import_initless_directory_warning (test.test_import.ImportTests) ... ok
test_import_name_binding (test.test_import.ImportTests) ... ok
test_infinite_reload (test.test_import.ImportTests) ... ok
test_module_with_large_stack (test.test_import.ImportTests) ... ok
test_basics (test.test_import.PycRewritingTests) ... FAIL
test_foreign_code (test.test_import.PycRewritingTests) ... ok
test_incorrect_code_name (test.test_import.PycRewritingTests) ... ok
test_module_without_source (test.test_import.PycRewritingTests) ... skipped 'pypy refuses to import without a .py source'
test_trailing_slash (test.test_import.PathsTests) ... ok
test_absolute_import_without_future (test.test_import.RelativeImportTests) ... ok
test_issue3221 (test.test_import.RelativeImportTests) ... ok
test_relimport_star (test.test_import.RelativeImportTests) ... ok
======================================================================
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-pypy-2346207d9946/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-pypy-2346207d9946/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_20345_tmp/unlikely_module_name.py' != '/var/tmp/portage/dev-python/pypy-1.8/temp/pytest-0/test_import.py/@test_20345_tmp/unlikely_module_name.pyc'
----------------------------------------------------------------------
Ran 21 tests in 0.897s
FAILED (failures=2, skipped=1)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_import.py", line 461, in test_main
run_unittest(ImportTests, PycRewritingTests, PathsTests, RelativeImportTests)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
_______________________________________ _______________________________________
testAAA (test.test_minidom.MinidomTest) ... ok
testAAB (test.test_minidom.MinidomTest) ... ok
testAddAttr (test.test_minidom.MinidomTest) ... ok
testAltNewline (test.test_minidom.MinidomTest) ... ok
testAppendChild (test.test_minidom.MinidomTest) ... ok
testAppendChildFragment (test.test_minidom.MinidomTest) ... ok
testAttrListItem (test.test_minidom.MinidomTest) ... ok
testAttrListItemNS (test.test_minidom.MinidomTest) ... ok
testAttrListItems (test.test_minidom.MinidomTest) ... ok
testAttrListKeys (test.test_minidom.MinidomTest) ... ok
testAttrListKeysNS (test.test_minidom.MinidomTest) ... ok
testAttrListLength (test.test_minidom.MinidomTest) ... ok
testAttrListValues (test.test_minidom.MinidomTest) ... ok
testAttrList__getitem__ (test.test_minidom.MinidomTest) ... ok
testAttrList__setitem__ (test.test_minidom.MinidomTest) ... ok
testAttributeRepr (test.test_minidom.MinidomTest) ... ok
testBug0777884 (test.test_minidom.MinidomTest) ... ok
testBug1433694 (test.test_minidom.MinidomTest) ... ok
testChangeAttr (test.test_minidom.MinidomTest) ... ok
testChildNodes (test.test_minidom.MinidomTest) ... ok
testCloneAttributeDeep (test.test_minidom.MinidomTest) ... ok
testCloneAttributeShallow (test.test_minidom.MinidomTest) ... ok
testCloneDocumentDeep (test.test_minidom.MinidomTest) ... ok
testCloneDocumentShallow (test.test_minidom.MinidomTest) ... ok
testCloneDocumentTypeDeepNotOk (test.test_minidom.MinidomTest) ... ok
testCloneDocumentTypeDeepOk (test.test_minidom.MinidomTest) ... ok
testCloneDocumentTypeShallowNotOk (test.test_minidom.MinidomTest) ... ok
testCloneDocumentTypeShallowOk (test.test_minidom.MinidomTest) ... ok
testCloneElementDeep (test.test_minidom.MinidomTest) ... ok
testCloneElementShallow (test.test_minidom.MinidomTest) ... ok
testClonePIDeep (test.test_minidom.MinidomTest) ... ok
testClonePIShallow (test.test_minidom.MinidomTest) ... ok
testComment (test.test_minidom.MinidomTest) ... ok
testCreateAttributeNS (test.test_minidom.MinidomTest) ... ok
testCreateElementNS (test.test_minidom.MinidomTest) ... ok
testDeleteAttr (test.test_minidom.MinidomTest) ... ok
testDocumentElement (test.test_minidom.MinidomTest) ... ok
testElement (test.test_minidom.MinidomTest) ... ok
testElementReprAndStr (test.test_minidom.MinidomTest) ... ok
testElementReprAndStrUnicode (test.test_minidom.MinidomTest) ... ok
testElementReprAndStrUnicodeNS (test.test_minidom.MinidomTest) ... ok
testEmptyXMLNSValue (test.test_minidom.MinidomTest) ... ERROR
testEncodings (test.test_minidom.MinidomTest) ... ERROR
testFirstChild (test.test_minidom.MinidomTest) ... ok
testGetAttrLength (test.test_minidom.MinidomTest) ... ok
testGetAttrList (test.test_minidom.MinidomTest) ... ok
testGetAttrValues (test.test_minidom.MinidomTest) ... ok
testGetAttribute (test.test_minidom.MinidomTest) ... ok
testGetAttributeNS (test.test_minidom.MinidomTest) ... ok
testGetAttributeNode (test.test_minidom.MinidomTest) ... ok
testGetElementsByTagName (test.test_minidom.MinidomTest) ... ok
testGetElementsByTagNameNS (test.test_minidom.MinidomTest) ... ok
testGetEmptyNodeListFromElementsByTagNameNS (test.test_minidom.MinidomTest) ... ok
testHasChildNodes (test.test_minidom.MinidomTest) ... ok
testImportDocumentDeep (test.test_minidom.MinidomTest) ... ok
testImportDocumentShallow (test.test_minidom.MinidomTest) ... ok
testImportDocumentTypeDeep (test.test_minidom.MinidomTest) ... ok
testImportDocumentTypeShallow (test.test_minidom.MinidomTest) ... ok
testInsertBefore (test.test_minidom.MinidomTest) ... ok
testInsertBeforeFragment (test.test_minidom.MinidomTest) ... ok
testLegalChildren (test.test_minidom.MinidomTest) ... ok
testNamedNodeMapSetItem (test.test_minidom.MinidomTest) ... ok
testNodeListItem (test.test_minidom.MinidomTest) ... ok
testNonZero (test.test_minidom.MinidomTest) ... ok
testNormalize (test.test_minidom.MinidomTest) ... ok
testNormalizeCombineAndNextSibling (test.test_minidom.MinidomTest) ... ok
testNormalizeDeleteAndCombine (test.test_minidom.MinidomTest) ... ok
testNormalizeDeleteWithNextSibling (test.test_minidom.MinidomTest) ... ok
testNormalizeDeleteWithPrevSibling (test.test_minidom.MinidomTest) ... ok
testNormalizeDeleteWithTwoNonTextSiblings (test.test_minidom.MinidomTest) ... ok
testNormalizeRecursion (test.test_minidom.MinidomTest) ... ok
testParents (test.test_minidom.MinidomTest) ... ok
testParse (test.test_minidom.MinidomTest) ... ok
testParseAttributeNamespaces (test.test_minidom.MinidomTest) ... ok
testParseAttributes (test.test_minidom.MinidomTest) ... ok
testParseElement (test.test_minidom.MinidomTest) ... ok
testParseElementNamespaces (test.test_minidom.MinidomTest) ... ok
testParseFromFile (test.test_minidom.MinidomTest) ... ok
testParseProcessingInstructions (test.test_minidom.MinidomTest) ... ok
testParseString (test.test_minidom.MinidomTest) ... ok
testPatch1094164 (test.test_minidom.MinidomTest) ... ok
testPickledDocument (test.test_minidom.MinidomTest) ... ok
testProcessingInstruction (test.test_minidom.MinidomTest) ... ok
testProcessingInstructionRepr (test.test_minidom.MinidomTest) ... ok
testRemoveAttr (test.test_minidom.MinidomTest) ... ok
testRemoveAttrNS (test.test_minidom.MinidomTest) ... ok
testRemoveAttributeNode (test.test_minidom.MinidomTest) ... ok
testRemoveNamedItem (test.test_minidom.MinidomTest) ... ok
testRemoveNamedItemNS (test.test_minidom.MinidomTest) ... ok
testRenameAttribute (test.test_minidom.MinidomTest) ... ok
testRenameElement (test.test_minidom.MinidomTest) ... ok
testRenameOther (test.test_minidom.MinidomTest) ... ok
testReplaceChildFragment (test.test_minidom.MinidomTest) ... ok
testReplaceWholeText (test.test_minidom.MinidomTest) ... ok
testSAX2DOM (test.test_minidom.MinidomTest) ... ok
testSchemaType (test.test_minidom.MinidomTest) ... ok
testSerializeCommentNodeWithDoubleHyphen (test.test_minidom.MinidomTest) ... ok
testSetAttrValueandNodeValue (test.test_minidom.MinidomTest) ... ok
testSetIdAttribute (test.test_minidom.MinidomTest) ... ok
testSetIdAttributeNS (test.test_minidom.MinidomTest) ... ok
testSetIdAttributeNode (test.test_minidom.MinidomTest) ... ok
testSiblings (test.test_minidom.MinidomTest) ... ok
testTextNodeRepr (test.test_minidom.MinidomTest) ... ok
testTextRepr (test.test_minidom.MinidomTest) ... ok
testTooManyDocumentElements (test.test_minidom.MinidomTest) ... ok
testUnlink (test.test_minidom.MinidomTest) ... ok
testUserData (test.test_minidom.MinidomTest) ... ok
testWholeText (test.test_minidom.MinidomTest) ... ok
testWriteText (test.test_minidom.MinidomTest) ... ok
testWriteXML (test.test_minidom.MinidomTest) ... ok
======================================================================
ERROR: testEmptyXMLNSValue (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/test/test_minidom.py", line 1469, in testEmptyXMLNSValue
doc2 = parseString(doc.toxml())
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/dom/minidom.py", line 1924, in parseString
return expatbuilder.parseString(string)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py", line 176, in Parse
raise self._error
ExpatError: not well-formed (invalid token): line: 1, column: 1
======================================================================
ERROR: testEncodings (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/test/test_minidom.py", line 1022, in testEncodings
self.confirm(doc.toxml() == u'<?xml version="1.0" ?><foo>\u20ac</foo>'
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/dom/minidom.py", line 45, in toxml
return self.toprettyxml("", "", encoding)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/dom/minidom.py", line 60, in toprettyxml
return writer.getvalue()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/StringIO.py", line 271, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
----------------------------------------------------------------------
Ran 110 tests in 0.977s
FAILED (errors=2)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:113: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreateNS(encoding, ord(namespace_separator))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:153: RuntimeWarning: C function without declared arguments called
XML_SetUnknownEncodingHandler(self.itself, cb, None)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:380: RuntimeWarning: C function without declared arguments called
XML_SetReturnNSTriplet(self.itself, int(bool(value)))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:190: RuntimeWarning: C function without declared arguments called
setter(self.itself, cb)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:168: RuntimeWarning: C function without declared arguments called
res = XML_Parse(self.itself, data, len(data), is_final)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:207: RuntimeWarning: C function without declared arguments called
max = XML_GetSpecifiedAttributeCount(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:111: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreate(encoding)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:198: RuntimeWarning: C function without declared arguments called
XML_StopParser(self.itself, XML_FALSE)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:170: RuntimeWarning: C function without declared arguments called
self._set_error(XML_GetErrorCode(self.itself))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:158: RuntimeWarning: C function without declared arguments called
lineno = lib.XML_GetCurrentLineNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:159: RuntimeWarning: C function without declared arguments called
colno = lib.XML_GetCurrentColumnNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:162: RuntimeWarning: C function without declared arguments called
err = XML_ErrorString(code)[:200]
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:289: RuntimeWarning: C function without declared arguments called
XML_FreeContentModel(self.itself, model)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/test/test_minidom.py", line 1474, in test_main
run_unittest(MinidomTest)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
_______________________________________ _______________________________________
test_ordered_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_returns_unicode (test.test_pyexpat.SetAttributeTest) ... ok
test_specified_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_parse_file (test.test_pyexpat.ParseTest) ... ok
test_unicode (test.test_pyexpat.ParseTest) ... ok
test_utf8 (test.test_pyexpat.ParseTest) ... ok
test_illegal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_legal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_zero_length (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test (test.test_pyexpat.InterningTest) ... FAIL
test1 (test.test_pyexpat.BufferTextTest) ... ok
test2 (test.test_pyexpat.BufferTextTest) ... ok
test3 (test.test_pyexpat.BufferTextTest) ... ok
test4 (test.test_pyexpat.BufferTextTest) ... ok
test5 (test.test_pyexpat.BufferTextTest) ... ok
test6 (test.test_pyexpat.BufferTextTest) ... ok
test7 (test.test_pyexpat.BufferTextTest) ... ok
test_buffering_enabled (test.test_pyexpat.BufferTextTest) ... ok
test_default_to_disabled (test.test_pyexpat.BufferTextTest) ... ok
test (test.test_pyexpat.HandlerExceptionTest) ... ok
test (test.test_pyexpat.PositionTest) ... ok
test_parse_only_xml_data (test.test_pyexpat.sf1296433Test) ... ok
test_1000_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_1025_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_1 (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_2 (test.test_pyexpat.ChardataBufferTest) ... ok
test_disabling_buffer (test.test_pyexpat.ChardataBufferTest) ... ok
test_unchanged_size (test.test_pyexpat.ChardataBufferTest) ... ok
test_wrong_size (test.test_pyexpat.ChardataBufferTest) ... ok
test1 (test.test_pyexpat.MalformedInputText) ... FAIL
test2 (test.test_pyexpat.MalformedInputText) ... FAIL
======================================================================
FAIL: test (test.test_pyexpat.InterningTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 281, in test
self.assertTrue(tag is entry)
AssertionError: False is not true
======================================================================
FAIL: test1 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 583, in test1
self.assertEqual(str(e), 'unclosed token: line 2, column 0')
AssertionError: 'unclosed token: line: 2, column: 0' != 'unclosed token: line 2, column 0'
======================================================================
FAIL: test2 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 593, in test2
self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14')
AssertionError: 'XML declaration not well-formed: line: 1, column: 14' != 'XML declaration not well-formed: line 1, column 14'
----------------------------------------------------------------------
Ran 31 tests in 0.259s
FAILED (failures=3)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:113: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreateNS(encoding, ord(namespace_separator))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:153: RuntimeWarning: C function without declared arguments called
XML_SetUnknownEncodingHandler(self.itself, cb, None)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:190: RuntimeWarning: C function without declared arguments called
setter(self.itself, cb)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:168: RuntimeWarning: C function without declared arguments called
res = XML_Parse(self.itself, data, len(data), is_final)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:111: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreate(encoding)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:198: RuntimeWarning: C function without declared arguments called
XML_StopParser(self.itself, XML_FALSE)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:170: RuntimeWarning: C function without declared arguments called
self._set_error(XML_GetErrorCode(self.itself))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:158: RuntimeWarning: C function without declared arguments called
lineno = lib.XML_GetCurrentLineNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:159: RuntimeWarning: C function without declared arguments called
colno = lib.XML_GetCurrentColumnNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:162: RuntimeWarning: C function without declared arguments called
err = XML_ErrorString(code)[:200]
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:408: RuntimeWarning: C function without declared arguments called
return getattr(lib, 'XML_Get' + name)(self.itself)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 605, in test_main
MalformedInputText)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
_______________________________________ _______________________________________
test_43581 (test.test_sys.SysModuleTest) ... ok
test_attributes (test.test_sys.SysModuleTest) ... ok
test_call_tracing (test.test_sys.SysModuleTest) ... ok
test_clear_type_cache (test.test_sys.SysModuleTest) ... skipped 'sys._clear_type_cache'
test_current_frames (test.test_sys.SysModuleTest) ... skipped 'current_frames'
test_custom_displayhook (test.test_sys.SysModuleTest) ... ok
test_dlopenflags (test.test_sys.SysModuleTest) ... ok
test_exc_clear (test.test_sys.SysModuleTest) ... ok
test_executable (test.test_sys.SysModuleTest) ... ok
test_exit (test.test_sys.SysModuleTest) ... ok
test_getdefaultencoding (test.test_sys.SysModuleTest) ... ok
test_getframe (test.test_sys.SysModuleTest) ... ok
test_getwindowsversion (test.test_sys.SysModuleTest) ... skipped 'module sys has no attribute getwindowsversion'
test_ioencoding (test.test_sys.SysModuleTest) ... ok
test_lost_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_excepthook (test.test_sys.SysModuleTest) ... ok
test_recursionlimit (test.test_sys.SysModuleTest) ... ok
test_refcount (test.test_sys.SysModuleTest) ... skipped 'reference counting'
test_setcheckinterval (test.test_sys.SysModuleTest) ... ok
test_sys_flags (test.test_sys.SysModuleTest) ... FAIL
test_default (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_gc_head_size (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_objecttypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_pythontypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
======================================================================
FAIL: test_sys_flags (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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.338s
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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
_______________________________________ _______________________________________
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1550, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
tree.attrib
Expected:
{u'\xe4ttr': u'v\xe4lue'}
Got:
{'\xc3\xa4ttr': 'v\xc3\xa4lue'}
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1552, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
ET.tostring(tree, "utf-8")
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit39[4]>", line 1, in <module>
ET.tostring(tree, "utf-8")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 812, in write
self._root, encoding, default_namespace
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 886, in _namespaces
add_qname(key)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 863, in add_qname
qnames[qname] = encode(qname)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 838, in encode
return text.encode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1576, in test.test_xml_etree.bug_xmltoolkit54
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit54[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1586, in test.test_xml_etree.bug_xmltoolkit55
Failed example:
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity &ldots;: line 1, column 36
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit55[0]>", line 1, in <module>
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1791, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[1]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1794, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[3]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1010, in test.test_xml_etree.entity
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 927, in _serialize_xml
v = _escape_attrib(v, encoding)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1085, in _escape_attrib
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1015, in test.test_xml_etree.entity
Failed example:
ET.XML("<document>&entity;</document>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity: line 1, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[2]>", line 1, in <module>
ET.XML("<document>&entity;</document>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: undefined entity: line: 1, column: 10
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1019, in test.test_xml_etree.entity
Failed example:
ET.XML(ENTITY_XML)
Expected:
Traceback (most recent call last):
ParseError: undefined entity &entity;: line 5, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[3]>", line 1, in <module>
ET.XML(ENTITY_XML)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 736, in test.test_xml_etree.iterparse
Failed example:
try:
for action, elem in iterparse(source):
print action, elem.tag
except ET.ParseError, v:
print v
Expected:
junk after document element: line 1, column 12
Got:
junk after document element: line: 1, column: 12
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 593, in test.test_xml_etree.parsefile
Failed example:
parser.version # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.parsefile[8]>", line 1, in <module>
parser.version # doctest: +ELLIPSIS
AttributeError: 'XMLParser' object has no attribute 'version'
**********************************************************************
7 items had failures:
2 of 12 in test.test_xml_etree.bug_xmltoolkit39
1 of 2 in test.test_xml_etree.bug_xmltoolkit54
1 of 1 in test.test_xml_etree.bug_xmltoolkit55
2 of 4 in test.test_xml_etree.check_issue6233
3 of 9 in test.test_xml_etree.entity
1 of 29 in test.test_xml_etree.iterparse
1 of 18 in test.test_xml_etree.parsefile
***Test Failed*** 11 failures.
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1880, in test_main
test_support.run_doctest(test_xml_etree, verbosity=True)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1168, in run_doctest
raise TestFailed("%d of %d doctests failed" % (f, t))
TestFailed: 11 of 599 doctests failed
_______________________________________ _______________________________________
test_case_sensitivity (test.test_import.ImportTests) ... ok
test_double_const (test.test_import.ImportTests) ... ok
test_execute_bit_not_copied (test.test_import.ImportTests) ... FAIL
test_failing_import_sticks (test.test_import.ImportTests) ... ok
test_failing_reload (test.test_import.ImportTests) ... ok
test_imp_module (test.test_import.ImportTests) ... ok
test_import (test.test_import.ImportTests) ... ok
test_import_by_filename (test.test_import.ImportTests) ... ok
test_import_in_del_does_not_crash (test.test_import.ImportTests) ... ok
test_import_initless_directory_warning (test.test_import.ImportTests) ... ok
test_import_name_binding (test.test_import.ImportTests) ... ok
test_infinite_reload (test.test_import.ImportTests) ... ok
test_module_with_large_stack (test.test_import.ImportTests) ... ok
test_basics (test.test_import.PycRewritingTests) ... FAIL
test_foreign_code (test.test_import.PycRewritingTests) ... ok
test_incorrect_code_name (test.test_import.PycRewritingTests) ... ok
test_module_without_source (test.test_import.PycRewritingTests) ... skipped 'pypy refuses to import without a .py source'
test_trailing_slash (test.test_import.PathsTests) ... ok
test_absolute_import_without_future (test.test_import.RelativeImportTests) ... ok
test_issue3221 (test.test_import.RelativeImportTests) ... ok
test_relimport_star (test.test_import.RelativeImportTests) ... ok
======================================================================
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-pypy-2346207d9946/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-pypy-2346207d9946/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_20345_tmp/unlikely_module_name.py' != '/var/tmp/portage/dev-python/pypy-1.8/temp/pytest-0/test_import.py/@test_20345_tmp/unlikely_module_name.pyc'
----------------------------------------------------------------------
Ran 21 tests in 0.897s
FAILED (failures=2, skipped=1)
test_case_sensitivity (test.test_import.ImportTests) ... ok
test_double_const (test.test_import.ImportTests) ... ok
test_execute_bit_not_copied (test.test_import.ImportTests) ... FAIL
test_failing_import_sticks (test.test_import.ImportTests) ... ok
test_failing_reload (test.test_import.ImportTests) ... ok
test_imp_module (test.test_import.ImportTests) ... ok
test_import (test.test_import.ImportTests) ... ok
test_import_by_filename (test.test_import.ImportTests) ... ok
test_import_in_del_does_not_crash (test.test_import.ImportTests) ... ok
test_import_initless_directory_warning (test.test_import.ImportTests) ... ok
test_import_name_binding (test.test_import.ImportTests) ... ok
test_infinite_reload (test.test_import.ImportTests) ... ok
test_module_with_large_stack (test.test_import.ImportTests) ... ok
test_basics (test.test_import.PycRewritingTests) ... FAIL
test_foreign_code (test.test_import.PycRewritingTests) ... ok
test_incorrect_code_name (test.test_import.PycRewritingTests) ... ok
test_module_without_source (test.test_import.PycRewritingTests) ... skipped 'pypy refuses to import without a .py source'
test_trailing_slash (test.test_import.PathsTests) ... ok
test_absolute_import_without_future (test.test_import.RelativeImportTests) ... ok
test_issue3221 (test.test_import.RelativeImportTests) ... ok
test_relimport_star (test.test_import.RelativeImportTests) ... ok
======================================================================
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-pypy-2346207d9946/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-pypy-2346207d9946/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_28048_tmp/unlikely_module_name.py' != '/var/tmp/portage/dev-python/pypy-1.8/temp/pytest-0/test_import.py/@test_28048_tmp/unlikely_module_name.pyc'
----------------------------------------------------------------------
Ran 21 tests in 0.771s
FAILED (failures=2, skipped=1)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_import.py", line 461, in test_main
run_unittest(ImportTests, PycRewritingTests, PathsTests, RelativeImportTests)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_import.py", line 461, in test_main
run_unittest(ImportTests, PycRewritingTests, PathsTests, RelativeImportTests)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
_______________________________________ _______________________________________
test_ordered_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_returns_unicode (test.test_pyexpat.SetAttributeTest) ... ok
test_specified_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_parse_file (test.test_pyexpat.ParseTest) ... ok
test_unicode (test.test_pyexpat.ParseTest) ... ok
test_utf8 (test.test_pyexpat.ParseTest) ... ok
test_illegal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_legal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_zero_length (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test (test.test_pyexpat.InterningTest) ... FAIL
test1 (test.test_pyexpat.BufferTextTest) ... ok
test2 (test.test_pyexpat.BufferTextTest) ... ok
test3 (test.test_pyexpat.BufferTextTest) ... ok
test4 (test.test_pyexpat.BufferTextTest) ... ok
test5 (test.test_pyexpat.BufferTextTest) ... ok
test6 (test.test_pyexpat.BufferTextTest) ... ok
test7 (test.test_pyexpat.BufferTextTest) ... ok
test_buffering_enabled (test.test_pyexpat.BufferTextTest) ... ok
test_default_to_disabled (test.test_pyexpat.BufferTextTest) ... ok
test (test.test_pyexpat.HandlerExceptionTest) ... ok
test (test.test_pyexpat.PositionTest) ... ok
test_parse_only_xml_data (test.test_pyexpat.sf1296433Test) ... ok
test_1000_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_1025_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_1 (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_2 (test.test_pyexpat.ChardataBufferTest) ... ok
test_disabling_buffer (test.test_pyexpat.ChardataBufferTest) ... ok
test_unchanged_size (test.test_pyexpat.ChardataBufferTest) ... ok
test_wrong_size (test.test_pyexpat.ChardataBufferTest) ... ok
test1 (test.test_pyexpat.MalformedInputText) ... FAIL
test2 (test.test_pyexpat.MalformedInputText) ... FAIL
======================================================================
FAIL: test (test.test_pyexpat.InterningTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 281, in test
self.assertTrue(tag is entry)
AssertionError: False is not true
======================================================================
FAIL: test1 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 583, in test1
self.assertEqual(str(e), 'unclosed token: line 2, column 0')
AssertionError: 'unclosed token: line: 2, column: 0' != 'unclosed token: line 2, column 0'
======================================================================
FAIL: test2 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 593, in test2
self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14')
AssertionError: 'XML declaration not well-formed: line: 1, column: 14' != 'XML declaration not well-formed: line 1, column 14'
----------------------------------------------------------------------
Ran 31 tests in 0.259s
FAILED (failures=3)
test_ordered_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_returns_unicode (test.test_pyexpat.SetAttributeTest) ... ok
test_specified_attributes (test.test_pyexpat.SetAttributeTest) ... ok
test_parse_file (test.test_pyexpat.ParseTest) ... ok
test_unicode (test.test_pyexpat.ParseTest) ... ok
test_utf8 (test.test_pyexpat.ParseTest) ... ok
test_illegal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_legal (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test_zero_length (test.test_pyexpat.NamespaceSeparatorTest) ... ok
test (test.test_pyexpat.InterningTest) ... FAIL
test1 (test.test_pyexpat.BufferTextTest) ... ok
test2 (test.test_pyexpat.BufferTextTest) ... ok
test3 (test.test_pyexpat.BufferTextTest) ... ok
test4 (test.test_pyexpat.BufferTextTest) ... ok
test5 (test.test_pyexpat.BufferTextTest) ... ok
test6 (test.test_pyexpat.BufferTextTest) ... ok
test7 (test.test_pyexpat.BufferTextTest) ... ok
test_buffering_enabled (test.test_pyexpat.BufferTextTest) ... ok
test_default_to_disabled (test.test_pyexpat.BufferTextTest) ... ok
test (test.test_pyexpat.HandlerExceptionTest) ... ok
test (test.test_pyexpat.PositionTest) ... ok
test_parse_only_xml_data (test.test_pyexpat.sf1296433Test) ... ok
test_1000_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_1025_bytes (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_1 (test.test_pyexpat.ChardataBufferTest) ... ok
test_change_size_2 (test.test_pyexpat.ChardataBufferTest) ... ok
test_disabling_buffer (test.test_pyexpat.ChardataBufferTest) ... ok
test_unchanged_size (test.test_pyexpat.ChardataBufferTest) ... ok
test_wrong_size (test.test_pyexpat.ChardataBufferTest) ... ok
test1 (test.test_pyexpat.MalformedInputText) ... FAIL
test2 (test.test_pyexpat.MalformedInputText) ... FAIL
======================================================================
FAIL: test (test.test_pyexpat.InterningTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 281, in test
self.assertTrue(tag is entry)
AssertionError: False is not true
======================================================================
FAIL: test1 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 583, in test1
self.assertEqual(str(e), 'unclosed token: line 2, column 0')
AssertionError: 'unclosed token: line: 2, column: 0' != 'unclosed token: line 2, column 0'
======================================================================
FAIL: test2 (test.test_pyexpat.MalformedInputText)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 593, in test2
self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14')
AssertionError: 'XML declaration not well-formed: line: 1, column: 14' != 'XML declaration not well-formed: line 1, column 14'
----------------------------------------------------------------------
Ran 31 tests in 0.265s
FAILED (failures=3)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:113: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreateNS(encoding, ord(namespace_separator))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:153: RuntimeWarning: C function without declared arguments called
XML_SetUnknownEncodingHandler(self.itself, cb, None)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:190: RuntimeWarning: C function without declared arguments called
setter(self.itself, cb)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:168: RuntimeWarning: C function without declared arguments called
res = XML_Parse(self.itself, data, len(data), is_final)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:111: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreate(encoding)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:198: RuntimeWarning: C function without declared arguments called
XML_StopParser(self.itself, XML_FALSE)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:170: RuntimeWarning: C function without declared arguments called
self._set_error(XML_GetErrorCode(self.itself))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:158: RuntimeWarning: C function without declared arguments called
lineno = lib.XML_GetCurrentLineNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:159: RuntimeWarning: C function without declared arguments called
colno = lib.XML_GetCurrentColumnNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:162: RuntimeWarning: C function without declared arguments called
err = XML_ErrorString(code)[:200]
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:408: RuntimeWarning: C function without declared arguments called
return getattr(lib, 'XML_Get' + name)(self.itself)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 605, in test_main
MalformedInputText)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:113: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreateNS(encoding, ord(namespace_separator))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:153: RuntimeWarning: C function without declared arguments called
XML_SetUnknownEncodingHandler(self.itself, cb, None)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:190: RuntimeWarning: C function without declared arguments called
setter(self.itself, cb)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:168: RuntimeWarning: C function without declared arguments called
res = XML_Parse(self.itself, data, len(data), is_final)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:111: RuntimeWarning: C function without declared arguments called
self.itself = XML_ParserCreate(encoding)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:198: RuntimeWarning: C function without declared arguments called
XML_StopParser(self.itself, XML_FALSE)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:170: RuntimeWarning: C function without declared arguments called
self._set_error(XML_GetErrorCode(self.itself))
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:158: RuntimeWarning: C function without declared arguments called
lineno = lib.XML_GetCurrentLineNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:159: RuntimeWarning: C function without declared arguments called
colno = lib.XML_GetCurrentColumnNumber(self.itself)
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:162: RuntimeWarning: C function without declared arguments called
err = XML_ErrorString(code)[:200]
/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib_pypy/pyexpat.py:408: RuntimeWarning: C function without declared arguments called
return getattr(lib, 'XML_Get' + name)(self.itself)
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_pyexpat.py", line 605, in test_main
MalformedInputText)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1094, in _run_suite
raise TestFailed(err)
TestFailed: multiple errors occurred
_______________________________________ _______________________________________
test_43581 (test.test_sys.SysModuleTest) ... ok
test_attributes (test.test_sys.SysModuleTest) ... ok
test_call_tracing (test.test_sys.SysModuleTest) ... ok
test_clear_type_cache (test.test_sys.SysModuleTest) ... skipped 'sys._clear_type_cache'
test_current_frames (test.test_sys.SysModuleTest) ... skipped 'current_frames'
test_custom_displayhook (test.test_sys.SysModuleTest) ... ok
test_dlopenflags (test.test_sys.SysModuleTest) ... ok
test_exc_clear (test.test_sys.SysModuleTest) ... ok
test_executable (test.test_sys.SysModuleTest) ... ok
test_exit (test.test_sys.SysModuleTest) ... ok
test_getdefaultencoding (test.test_sys.SysModuleTest) ... ok
test_getframe (test.test_sys.SysModuleTest) ... ok
test_getwindowsversion (test.test_sys.SysModuleTest) ... skipped 'module sys has no attribute getwindowsversion'
test_ioencoding (test.test_sys.SysModuleTest) ... ok
test_lost_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_excepthook (test.test_sys.SysModuleTest) ... ok
test_recursionlimit (test.test_sys.SysModuleTest) ... ok
test_refcount (test.test_sys.SysModuleTest) ... skipped 'reference counting'
test_setcheckinterval (test.test_sys.SysModuleTest) ... ok
test_sys_flags (test.test_sys.SysModuleTest) ... FAIL
test_default (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_gc_head_size (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_objecttypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_pythontypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
======================================================================
FAIL: test_sys_flags (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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.338s
FAILED (failures=1, skipped=8)
test_43581 (test.test_sys.SysModuleTest) ... ok
test_attributes (test.test_sys.SysModuleTest) ... ok
test_call_tracing (test.test_sys.SysModuleTest) ... ok
test_clear_type_cache (test.test_sys.SysModuleTest) ... skipped 'sys._clear_type_cache'
test_current_frames (test.test_sys.SysModuleTest) ... skipped 'current_frames'
test_custom_displayhook (test.test_sys.SysModuleTest) ... ok
test_dlopenflags (test.test_sys.SysModuleTest) ... ok
test_exc_clear (test.test_sys.SysModuleTest) ... ok
test_executable (test.test_sys.SysModuleTest) ... ok
test_exit (test.test_sys.SysModuleTest) ... ok
test_getdefaultencoding (test.test_sys.SysModuleTest) ... ok
test_getframe (test.test_sys.SysModuleTest) ... ok
test_getwindowsversion (test.test_sys.SysModuleTest) ... skipped 'module sys has no attribute getwindowsversion'
test_ioencoding (test.test_sys.SysModuleTest) ... ok
test_lost_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_displayhook (test.test_sys.SysModuleTest) ... ok
test_original_excepthook (test.test_sys.SysModuleTest) ... ok
test_recursionlimit (test.test_sys.SysModuleTest) ... ok
test_refcount (test.test_sys.SysModuleTest) ... skipped 'reference counting'
test_setcheckinterval (test.test_sys.SysModuleTest) ... ok
test_sys_flags (test.test_sys.SysModuleTest) ... FAIL
test_default (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_gc_head_size (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_objecttypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
test_pythontypes (test.test_sys.SizeofTest) ... skipped 'sys.getsizeof()'
======================================================================
FAIL: test_sys_flags (test.test_sys.SysModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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.327s
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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-pypy-2346207d9946/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
_______________________________________ _______________________________________
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1550, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
tree.attrib
Expected:
{u'\xe4ttr': u'v\xe4lue'}
Got:
{'\xc3\xa4ttr': 'v\xc3\xa4lue'}
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1552, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
ET.tostring(tree, "utf-8")
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit39[4]>", line 1, in <module>
ET.tostring(tree, "utf-8")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 812, in write
self._root, encoding, default_namespace
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 886, in _namespaces
add_qname(key)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 863, in add_qname
qnames[qname] = encode(qname)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 838, in encode
return text.encode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1576, in test.test_xml_etree.bug_xmltoolkit54
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit54[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1586, in test.test_xml_etree.bug_xmltoolkit55
Failed example:
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity &ldots;: line 1, column 36
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit55[0]>", line 1, in <module>
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1791, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[1]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1794, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[3]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1010, in test.test_xml_etree.entity
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 927, in _serialize_xml
v = _escape_attrib(v, encoding)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1085, in _escape_attrib
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1015, in test.test_xml_etree.entity
Failed example:
ET.XML("<document>&entity;</document>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity: line 1, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[2]>", line 1, in <module>
ET.XML("<document>&entity;</document>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: undefined entity: line: 1, column: 10
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1019, in test.test_xml_etree.entity
Failed example:
ET.XML(ENTITY_XML)
Expected:
Traceback (most recent call last):
ParseError: undefined entity &entity;: line 5, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[3]>", line 1, in <module>
ET.XML(ENTITY_XML)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 736, in test.test_xml_etree.iterparse
Failed example:
try:
for action, elem in iterparse(source):
print action, elem.tag
except ET.ParseError, v:
print v
Expected:
junk after document element: line 1, column 12
Got:
junk after document element: line: 1, column: 12
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 593, in test.test_xml_etree.parsefile
Failed example:
parser.version # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.parsefile[8]>", line 1, in <module>
parser.version # doctest: +ELLIPSIS
AttributeError: 'XMLParser' object has no attribute 'version'
**********************************************************************
7 items had failures:
2 of 12 in test.test_xml_etree.bug_xmltoolkit39
1 of 2 in test.test_xml_etree.bug_xmltoolkit54
1 of 1 in test.test_xml_etree.bug_xmltoolkit55
2 of 4 in test.test_xml_etree.check_issue6233
3 of 9 in test.test_xml_etree.entity
1 of 29 in test.test_xml_etree.iterparse
1 of 18 in test.test_xml_etree.parsefile
***Test Failed*** 11 failures.
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1550, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
tree.attrib
Expected:
{u'\xe4ttr': u'v\xe4lue'}
Got:
{'\xc3\xa4ttr': 'v\xc3\xa4lue'}
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1552, in test.test_xml_etree.bug_xmltoolkit39
Failed example:
ET.tostring(tree, "utf-8")
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit39[4]>", line 1, in <module>
ET.tostring(tree, "utf-8")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 812, in write
self._root, encoding, default_namespace
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 886, in _namespaces
add_qname(key)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 863, in add_qname
qnames[qname] = encode(qname)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 838, in encode
return text.encode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1576, in test.test_xml_etree.bug_xmltoolkit54
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit54[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1586, in test.test_xml_etree.bug_xmltoolkit55
Failed example:
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity &ldots;: line 1, column 36
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.bug_xmltoolkit55[0]>", line 1, in <module>
e = ET.XML("<!DOCTYPE doc SYSTEM 'doc.dtd'><doc>&ldots;&ndots;&rdots;</doc>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1791, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[1]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1794, in test.test_xml_etree.check_issue6233
Failed example:
ET.tostring(e, 'ascii')
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.check_issue6233[3]>", line 1, in <module>
ET.tostring(e, 'ascii')
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1121, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 932, in _serialize_xml
write(_escape_cdata(text, encoding))
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1068, in _escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1010, in test.test_xml_etree.entity
Failed example:
serialize(e)
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[1]>", line 1, in <module>
serialize(e)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 73, in serialize
tree.write(file, **options)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 815, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 927, in _serialize_xml
v = _escape_attrib(v, encoding)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1085, in _escape_attrib
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1015, in test.test_xml_etree.entity
Failed example:
ET.XML("<document>&entity;</document>")
Expected:
Traceback (most recent call last):
ParseError: undefined entity: line 1, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[2]>", line 1, in <module>
ET.XML("<document>&entity;</document>")
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: undefined entity: line: 1, column: 10
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1019, in test.test_xml_etree.entity
Failed example:
ET.XML(ENTITY_XML)
Expected:
Traceback (most recent call last):
ParseError: undefined entity &entity;: line 5, column 10
Got:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.entity[3]>", line 1, in <module>
ET.XML(ENTITY_XML)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1282, in XML
parser.feed(text)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1624, in feed
self._raiseerror(v)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
raise err
ParseError: <unprintable ParseError object>
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 736, in test.test_xml_etree.iterparse
Failed example:
try:
for action, elem in iterparse(source):
print action, elem.tag
except ET.ParseError, v:
print v
Expected:
junk after document element: line 1, column 12
Got:
junk after document element: line: 1, column: 12
**********************************************************************
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 593, in test.test_xml_etree.parsefile
Failed example:
parser.version # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/2.7/doctest.py", line 1254, in __run
compileflags, 1) in test.globs
File "<doctest test.test_xml_etree.parsefile[8]>", line 1, in <module>
parser.version # doctest: +ELLIPSIS
AttributeError: 'XMLParser' object has no attribute 'version'
**********************************************************************
7 items had failures:
2 of 12 in test.test_xml_etree.bug_xmltoolkit39
1 of 2 in test.test_xml_etree.bug_xmltoolkit54
1 of 1 in test.test_xml_etree.bug_xmltoolkit55
2 of 4 in test.test_xml_etree.check_issue6233
3 of 9 in test.test_xml_etree.entity
1 of 29 in test.test_xml_etree.iterparse
1 of 18 in test.test_xml_etree.parsefile
***Test Failed*** 11 failures.
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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1880, in test_main
test_support.run_doctest(test_xml_etree, verbosity=True)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1168, in run_doctest
raise TestFailed("%d of %d doctests failed" % (f, t))
TestFailed: 11 of 599 doctests 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-pypy-2346207d9946/pypy/tool/pytest/run-script/regrverbose.py", line 14, in <module>
indirect_test()
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_xml_etree.py", line 1880, in test_main
test_support.run_doctest(test_xml_etree, verbosity=True)
File "/var/tmp/portage/dev-python/pypy-1.8/work/pypy-pypy-2346207d9946/lib-python/modified-2.7/test/test_support.py", line 1168, in run_doctest
raise TestFailed("%d of %d doctests failed" % (f, t))
TestFailed: 11 of 599 doctests failed
============= 9 failed, 408 passed, 67 skipped in 1117.85 seconds ==============
More information about the pypy-issue
mailing list