[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-04 Thread STINNER Victor


STINNER Victor  added the comment:

> This test is failed with -We.

Thank you Serhiy for the bug report. It should now be fixed again.

--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-04 Thread miss-islington


miss-islington  added the comment:


New changeset d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0 by Miss Islington (bot) 
in branch '3.7':
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
https://github.com/python/cpython/commit/d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0


--

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-04 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7010

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-03 Thread Ned Deily


Ned Deily  added the comment:


New changeset e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6 by Ned Deily (Victor 
Stinner) in branch 'master':
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
https://github.com/python/cpython/commit/e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6


--

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-03 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6991
stage: resolved -> patch review

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-06-03 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This test is failed with -We.

$ ./python -We -m test -v test_warnings
...
==
ERROR: test_module_globals (test.test_warnings.CFilterTests)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, 
in test_module_globals
module_globals=None)
UserWarning: msg

==
ERROR: test_module_globals (test.test_warnings.PyFilterTests)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, 
in test_module_globals
module_globals=None)
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 375, in warn_explicit
raise message
UserWarning: msg

--

--
status: closed -> open

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-16 Thread Ned Deily

Ned Deily  added the comment:

Thanks for the report and thanks for the fix!

--
priority: release blocker -> 
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread miss-islington

miss-islington  added the comment:


New changeset 820219f7867f2bbfe0ac4d4f0d1ea1fdef7795a9 by Miss Islington (bot) 
in branch '3.7':
bpo-33509: Fix _warnings for module_globals=None (GH-6833)
https://github.com/python/cpython/commit/820219f7867f2bbfe0ac4d4f0d1ea1fdef7795a9


--
nosy: +miss-islington

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6544

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset b056562860c227bad2e0ba7cd3130e115c007768 by Victor Stinner in 
branch 'master':
bpo-33509: Fix _warnings for module_globals=None (#6833)
https://github.com/python/cpython/commit/b056562860c227bad2e0ba7cd3130e115c007768


--

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

This bug was before commit d4f8480dfe89447587550a85b61d4e9faf827e98.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread STINNER Victor

Change by STINNER Victor :


--
keywords: +patch
pull_requests: +6516
stage:  -> patch review

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread STINNER Victor

STINNER Victor  added the comment:

I choose the release blocker priority, since IMHO it's an easy fix.

--
nosy: +ned.deily
priority: normal -> release blocker

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread STINNER Victor

STINNER Victor  added the comment:

It may be related to:

commit d4f8480dfe89447587550a85b61d4e9faf827e98
Author: Serhiy Storchaka 
Date:   Sat Nov 11 15:19:47 2017 +0200

bpo-31572: Don't silence unexpected errors in the _warnings module. (#3731)

Get rid of _PyObject_HasAttrId() and PyDict_GetItemString().
Silence only expected AttributeError, KeyError and ImportError when
get an attribute, look up in a dict or import a module.

--
nosy: +vstinner

___
Python tracker 

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



[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread Amber Brown

New submission from Amber Brown :

Reproducible with:

import warnings
warnings.warn_explicit("msg", DeprecationWarning, "name", 1, 
module_globals=None)

--
components: Interpreter Core
messages: 316578
nosy: hawkowl
priority: normal
severity: normal
status: open
title: warnings.warn_explicit with module_globals=True raises a SystemError
type: crash
versions: Python 3.7, Python 3.8

___
Python tracker 

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