[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-25 Thread R. David Murray

R. David Murray added the comment:

Lacking feedback in the negative, I'm closing this.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-19 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

Actual tip:
changeset: 87276:2012e85638d9
date: Tue Nov 19 11:43:38 2013 -0800

It's a fresh clone, then:
make clean
./configure --with-pydebug
make -j4
./python -OO -m test -v test_email

== CPython 3.4.0a4+ (default:2012e85638d9, Nov 19 2013, 22:40:39) [GCC 4.7.2]
==   Linux-3.2.0-4-amd64-x86_64-with-debian-7.2 little-endian
==   /home/ci/Prog/cpython_test/cpython/build/test_python_30828
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=2, 
dont_write_bytecode=0, no_user_site=0, no_site=0, igno
re_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, 
isolated=0)
[1/1] test_email
test_b_case_ignored (test__encoded_words.TestDecode) ... ok

and so on


Ran 1516 tests in 8.313s

OK (skipped=1)
1 test OK.

--
nosy: +francismb
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-19 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

small correction:

a fresh clone, then:
./configure --with-pydebug
make -j4
./python -OO -m test -v test_email

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-18 Thread R. David Murray

R. David Murray added the comment:

I can't get this to fail.  The code handles None docstrings correctly 
(_append_doc is not called if the __doc__ attribute is None).

The only way I can see this error arising would be if the _policybase.pyo file 
had docstrings stripped, but the policy.pyo file did not.  I consider that a 
bug in .pyo and -O/-OO handling, so I'd like to close this as works for me.

--
resolution:  - works for me
stage: needs patch - committed/rejected
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: pending - open
superseder:  - pyo's are not overwritten by different optimization levels

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19626] test_email and Lib/email/_policybase.py failures with -OO

2013-11-16 Thread Ezio Melotti

New submission from Ezio Melotti:

From #19535:
$ ./python -OO -m test -v test_email 

[...]

==
ERROR: test_policy (unittest.loader.ModuleImportFailure)
--
Traceback (most recent call last):
  File /home/wolf/dev/py/py3k/Lib/unittest/case.py, line 57, in 
testPartExecutor
yield
  File /home/wolf/dev/py/py3k/Lib/unittest/case.py, line 571, in run
testMethod()
  File /home/wolf/dev/py/py3k/Lib/unittest/loader.py, line 32, in testFailure
raise exception
ImportError: Failed to import test module: test_policy
Traceback (most recent call last):
  File /home/wolf/dev/py/py3k/Lib/unittest/loader.py, line 272, in _find_tests
module = self._get_module_from_name(name)
  File /home/wolf/dev/py/py3k/Lib/unittest/loader.py, line 250, in 
_get_module_from_name
__import__(name)
  File /home/wolf/dev/py/py3k/Lib/test/test_email/test_policy.py, line 5, in 
module
import email.policy
  File /home/wolf/dev/py/py3k/Lib/email/policy.py, line 22, in module
class EmailPolicy(Policy):
  File /home/wolf/dev/py/py3k/Lib/email/_policybase.py, line 101, in 
_extend_docstrings
cls.__doc__ = _append_doc(cls.__bases__[0].__doc__, cls.__doc__)
  File /home/wolf/dev/py/py3k/Lib/email/_policybase.py, line 95, in 
_append_doc
doc = doc.rsplit('\n', 1)[0]
AttributeError: 'NoneType' object has no attribute 'rsplit'

--
Ran 68 tests in 0.028s

FAILED (errors=11)
Warning -- sys.path was modified by test_email
test test_email failed
1 test failed:
test_email

--
components: Library (Lib)
keywords: easy
messages: 203072
nosy: barry, ezio.melotti, r.david.murray, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: test_email and Lib/email/_policybase.py failures with -OO
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19626
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com