New submission from Serhiy Storchaka:

$ ./python -OO -m test.regrtest test_docxmlrpc test_functools test_inspect 
test_pkg
[1/4] test_docxmlrpc
test test_docxmlrpc failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_docxmlrpc.py", line 210, in 
test_annotations
    response.read())
AssertionError: b'<dl><dt><a 
name="-annotation"><strong>annotation</strong></a>(x: 
int)</dt><dd><tt>Use&nbsp;function&nbsp;annotations.</tt></dd></dl>\n<dl><dt><a 
name="-method_annotation"><strong>method_annotation</strong></a>(x: 
bytes)</dt></dl>' not found in b'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 
Transitional//EN">\n<html><head><title>Python: DocXMLRPCServer Test 
Documentation</title>\n<meta http-equiv="Content-Type" content="text/html; 
charset=utf-8">\n</head><body bgcolor="#f0f0f8">\n\n<table width="100%" 
cellspacing=0 cellpadding=2 border=0 summary="heading">\n<tr 
bgcolor="#7799ee">\n<td valign=bottom>&nbsp;<br>\n<font color="#ffffff" 
face="helvetica, arial">&nbsp;<br><big><big><strong>DocXMLRPCServer Test 
Docs</strong></big></big></font></td\n><td align=right valign=bottom\n><font 
color="#ffffff" face="helvetica, arial">&nbsp;</font></td></tr></table>\n    
<p><tt>This&nbsp;is&nbsp;an&nbsp;XML-RPC&nbsp;server\'s&nbsp;documentation,&nbsp;but&nbsp;the&nbsp;server&nbsp;can&
 
nbsp;be&nbsp;used&nbsp;by&nbsp;POSTing&nbsp;to&nbsp;/RPC2.&nbsp;Try&nbsp;self.<strong>add</strong>,&nbsp;too.</tt></p>\n<p>\n<table
 width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">\n<tr 
bgcolor="#eeaa77">\n<td colspan=3 valign=bottom>&nbsp;<br>\n<font 
color="#ffffff" face="helvetica, 
arial"><big><strong>Methods</strong></big></font></td></tr>\n    \n<tr><td 
bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>\n<td
 width="100%"><dl><dt><a 
name="-&lt;lambda&gt;"><strong>&lt;lambda&gt;</strong></a>(x, 
y)</dt></dl>\n<dl><dt><a name="-add"><strong>add</strong></a>(x, 
y)</dt></dl>\n<dl><dt><a name="-annotation"><strong>annotation</strong></a>(x: 
int)</dt></dl>\n<dl><dt><a 
name="-method_annotation"><strong>method_annotation</strong></a>(x: 
bytes)</dt></dl>\n<dl><dt><a 
name="-system.listMethods"><strong>system.listMethods</strong></a>()</dt></dl>\n<dl><dt><a
 
name="-system.methodHelp"><strong>system.methodHelp</strong></a>(method_name)</dt><
 /dl>\n<dl><dt><a 
name="-system.methodSignature"><strong>system.methodSignature</strong></a>(method_name)</dt></dl>\n</td></tr></table>\n</body></html>'

[2/4/1] test_functools
test test_functools failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_functools.py", line 1127, in 
test_wrapping_attributes
    self.assertEqual(g.__doc__, "Simple test")
AssertionError: None != 'Simple test'

[3/4/2] test_inspect
test test_inspect failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_inspect.py", line 2528, in 
test_details
    self.assertIn(module.__cached__, output)
AssertionError: 
'/home/serhiy/py/cpython/Lib/unittest/__pycache__/__init__.cpython-34.pyo' not 
found in "Target: unittest\nOrigin: 
/home/serhiy/py/cpython/Lib/unittest/__init__.py\nCached: 
/home/serhiy/py/cpython/Lib/unittest/__pycache__/__init__.cpython-34.pyc\nLoader:
 <_frozen_importlib.SourceFileLoader object at 0xb7041c4c>\nSubmodule search 
path: ['/home/serhiy/py/cpython/Lib/unittest']\n\n\n"

[4/4/3] test_pkg
1 test OK.
3 tests failed:
    test_docxmlrpc test_functools test_inspect

----------
components: Tests
messages: 202476
nosy: serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: Test failures with -OO
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19535>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to