[issue23027] test_warnings fails with -Werror

2015-04-08 Thread Berker Peksag

Berker Peksag added the comment:

Removing issue 18383 from dependencies since the bug is also reproducible on 
the 3.4 branch. This issue only applies to the default branch.

--
dependencies:  -test_warnings modifies warnings.filters when running with "-W 
default"
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
versions:  -Python 3.4

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2015-04-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e64197dad303 by Berker Peksag in branch 'default':
Issue #23027: test_warnings now passes all tests when run it with -Werror.
https://hg.python.org/cpython/rev/e64197dad303

--
nosy: +python-dev

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2015-04-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch fixes an error, but produces a warning about changed filters. The 
patch in issue18383 should fix it.

The patch LGTM, but I left one question on Rietveld.

--
dependencies: +test_warnings modifies warnings.filters when running with "-W 
default"
stage: patch review -> commit review

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2015-04-04 Thread Berker Peksag

Berker Peksag added the comment:

Here is a patch.

--
assignee:  -> berker.peksag
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file38827/issue23027.diff

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2015-03-08 Thread Mark Lawrence

Mark Lawrence added the comment:

This can be reproduced with 3.5 on Windows 8.1.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2014-12-10 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
stage:  -> needs patch

___
Python tracker 

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



[issue23027] test_warnings fails with -Werror

2014-12-10 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

$ ./python -Werror -m test.regrtest -v test_warnings
...
==
ERROR: test_warning_classes (test.test_warnings.CWarnTests)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings.py", line 460, in 
test_warning_classes
self.module.warn('good warning category', MyWarningClass)
test.test_warnings.WarnTests.test_warning_classes..MyWarningClass: good 
warning category

==
ERROR: test_warning_classes (test.test_warnings.PyWarnTests)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings.py", line 460, in 
test_warning_classes
self.module.warn('good warning category', MyWarningClass)
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 204, in warn
globals)
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 249, in warn_explicit
raise message
test.test_warnings.WarnTests.test_warning_classes..MyWarningClass: good 
warning category

--

This is 3.x only issue.

--
components: Tests
messages: 232446
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_warnings fails with -Werror
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker 

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