<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_warnings, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_warnings?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_warnings?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-12-04T20:25:57Z</updated>
<entry>
<title>bpo-29564: warnings suggests to enable tracemalloc (GH-10486) (GH-10509)</title>
<updated>2018-12-04T20:25:57Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-12-04T20:25:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0091f349cde179ea991f4ee4d095119cd1fc3802'/>
<id>urn:sha1:0091f349cde179ea991f4ee4d095119cd1fc3802</id>
<content type='text'>
The warnings module now suggests to enable tracemalloc if the source
is specified, tracemalloc module is available, but tracemalloc is not
tracing memory allocations.
(cherry picked from commit 2c07c493d2eb45101312e3eb3a77f94d0c9cad1f)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)</title>
<updated>2018-07-09T15:47:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-09T15:47:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=958a25ea9fdf3e47f3f0829073dc77c0869488dd'/>
<id>urn:sha1:958a25ea9fdf3e47f3f0829073dc77c0869488dd</id>
<content type='text'>
Fixed also testing the "always" warning filter.
(cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21)

Co-authored-by: Sergey Fedoseev &lt;fedoseev.sergey@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)</title>
<updated>2018-06-04T17:23:41Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-04T17:23:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0'/>
<id>urn:sha1:d2c6ecc234e705b60cbcbb9dd4c99022407d0dd0</id>
<content type='text'>
Fix test_warnings.test_module_globals() when python3 is run with
-Werror.
(cherry picked from commit e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-33509: Fix _warnings for module_globals=None (GH-6833)</title>
<updated>2018-05-15T20:56:28Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-05-15T20:56:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=820219f7867f2bbfe0ac4d4f0d1ea1fdef7795a9'/>
<id>urn:sha1:820219f7867f2bbfe0ac4d4f0d1ea1fdef7795a9</id>
<content type='text'>
Don't crash on warnings.warn_explicit() if module_globals is not a dict.
(cherry picked from commit b056562860c227bad2e0ba7cd3130e115c007768)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458)</title>
<updated>2018-01-08T02:45:02Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-01-08T02:45:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b99747386b690007027c3be2a5d7cfe3d3634f5'/>
<id>urn:sha1:9b99747386b690007027c3be2a5d7cfe3d3634f5</id>
<content type='text'>
- primary change is to add a new default filter entry for
  'default::DeprecationWarning:__main__'
- secondary change is an internal one to cope with plain
  strings in the warning module's internal filter list
  (this avoids the need to create a compiled regex object
  early on during interpreter startup)
- assorted documentation updates, including many more
  examples of configuring the warnings settings
- additional tests to ensure that both the pure Python and
  the C accelerated warnings modules have the expected
  default configuration</content>
</entry>
<entry>
<title>bpo-32230: Set sys.warnoptions with -X dev (#4820)</title>
<updated>2017-12-12T21:59:48Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-12-12T21:59:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=747f48e2e92390c44c72f52a1239959601cde157'/>
<id>urn:sha1:747f48e2e92390c44c72f52a1239959601cde157</id>
<content type='text'>
Rather than supporting dev mode directly in the warnings module, this
instead adjusts the initialisation code to add an extra 'default'
entry to sys.warnoptions when dev mode is enabled.

This ensures that dev mode behaves *exactly* as if `-Wdefault` had
been passed on the command line, including in the way it interacts
with `sys.warnoptions`, and with other command line flags like `-bb`.

Fix also bpo-20361: have -b &amp; -bb options take precedence over any
other warnings options.

Patch written by Nick Coghlan, with minor modifications of Victor Stinner.</content>
</entry>
<entry>
<title>bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.format (#4534)</title>
<updated>2017-11-29T23:05:07Z</updated>
<author>
<name>Jesse-Bakker</name>
<email>jessebakker00@gmail.com</email>
</author>
<published>2017-11-29T23:05:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=706e10b186992e086e661a62d2c8ec9588525b31'/>
<id>urn:sha1:706e10b186992e086e661a62d2c8ec9588525b31</id>
<content type='text'>
* Add most_recent_first parameter to tracemalloc.Traceback.format to allow
   reversing the order of the frames in the output
* Reversed default sorting of tracemalloc.Traceback frames
* Allowed negative limit, truncating from the other side.</content>
</entry>
<entry>
<title>bpo-27535: Fix memory leak with warnings ignore (#4489)</title>
<updated>2017-11-27T15:57:07Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-27T15:57:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c9758784eb321fb9771e0bc7205b296e4d658045'/>
<id>urn:sha1:c9758784eb321fb9771e0bc7205b296e4d658045</id>
<content type='text'>
The warnings module doesn't leak memory anymore in the hidden
warnings registry for the "ignore" action of warnings filters.

The warn_explicit() function doesn't add the warning key to the
registry anymore for the "ignore" action.</content>
</entry>
<entry>
<title>bpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad __name__ global. (#3717)</title>
<updated>2017-09-24T18:28:42Z</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-09-24T18:28:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d3e80021ab33360191eb0fbff34e0246c913884'/>
<id>urn:sha1:5d3e80021ab33360191eb0fbff34e0246c913884</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31285: Fix an assertion failure and a SystemError in warnings.warn_explicit. (#3219)</title>
<updated>2017-09-24T18:27:12Z</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-09-24T18:27:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91fb0afe181986b48abfc6092dcca912b39de51d'/>
<id>urn:sha1:91fb0afe181986b48abfc6092dcca912b39de51d</id>
<content type='text'>
</content>
</entry>
</feed>
