<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_warnings, branch benjamin-eval-loop-edit</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)</title>
<updated>2018-07-09T15:25:55+00:00</updated>
<author>
<name>Sergey Fedoseev</name>
<email>fedoseev.sergey@gmail.com</email>
</author>
<published>2018-07-09T15:25:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b796e7dcdc24ff7ec53044af041254c83a8ace21'/>
<id>b796e7dcdc24ff7ec53044af041254c83a8ace21</id>
<content type='text'>
Fixed also testing the "always" warning filter.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed also testing the "always" warning filter.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33912: Fix test_warnings when run with -Werror (GH-7839)</title>
<updated>2018-06-21T16:12:56+00:00</updated>
<author>
<name>Christopher Frederickson</name>
<email>fredericc0@students.rowan.edu</email>
</author>
<published>2018-06-21T16:12:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=419e88d18ccc83e182afca124d42f46794022aab'/>
<id>419e88d18ccc83e182afca124d42f46794022aab</id>
<content type='text'>
Add missing warning filter to test_exec_filename().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing warning filter to test_exec_filename().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)</title>
<updated>2018-06-08T19:28:37+00:00</updated>
<author>
<name>Thomas Kluyver</name>
<email>takowl@gmail.com</email>
</author>
<published>2018-06-08T19:28:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=11a896652ee98aa44e59ed25237f9efb56635dcf'/>
<id>11a896652ee98aa44e59ed25237f9efb56635dcf</id>
<content type='text'>
More consistent with how other parts of Python find the filename (e.g. tracebacks and pdb).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More consistent with how other parts of Python find the filename (e.g. tracebacks and pdb).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)</title>
<updated>2018-06-04T05:14:46+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-06-04T05:14:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6'/>
<id>e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6</id>
<content type='text'>
Fix test_warnings.test_module_globals() when python3 is run with
-Werror.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix test_warnings.test_module_globals() when python3 is run with
-Werror.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33509: Fix _warnings for module_globals=None (#6833)</title>
<updated>2018-05-15T18:42:12+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-05-15T18:42:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b056562860c227bad2e0ba7cd3130e115c007768'/>
<id>b056562860c227bad2e0ba7cd3130e115c007768</id>
<content type='text'>
Don't crash on warnings.warn_explicit() if module_globals is not a dict.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't crash on warnings.warn_explicit() if module_globals is not a dict.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458)</title>
<updated>2018-01-08T02:45:02+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-01-08T02:45:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9b99747386b690007027c3be2a5d7cfe3d3634f5'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32230: Set sys.warnoptions with -X dev (#4820)</title>
<updated>2017-12-12T21:59:48+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-12-12T21:59:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=747f48e2e92390c44c72f52a1239959601cde157'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.format (#4534)</title>
<updated>2017-11-29T23:05:07+00:00</updated>
<author>
<name>Jesse-Bakker</name>
<email>jessebakker00@gmail.com</email>
</author>
<published>2017-11-29T23:05:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=706e10b186992e086e661a62d2c8ec9588525b31'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-27535: Fix memory leak with warnings ignore (#4489)</title>
<updated>2017-11-27T15:57:07+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-27T15:57:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c9758784eb321fb9771e0bc7205b296e4d658045'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</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:42+00:00</updated>
<author>
<name>Oren Milman</name>
<email>orenmn@gmail.com</email>
</author>
<published>2017-09-24T18:28:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5d3e80021ab33360191eb0fbff34e0246c913884'/>
<id>5d3e80021ab33360191eb0fbff34e0246c913884</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
