<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_logging.py, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_logging.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_logging.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-10-07T07:09:59Z</updated>
<entry>
<title>bpo-6721: Hold logging locks across fork() (GH-4071) (#9291)</title>
<updated>2018-10-07T07:09:59Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-10-07T07:09:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b699932e5ac3e76031bbb6d700fbea07492641d'/>
<id>urn:sha1:3b699932e5ac3e76031bbb6d700fbea07492641d</id>
<content type='text'>
bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log.  This fixes that by acquiring all logging locks before fork and releasing them afterwards.

A regression test that fails before this change is included.

Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens.  buildbots and time will tell if this actually manifests itself in this test or not.  :/  A functionality test that avoids that would be a challenge.

An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so.
(cherry picked from commit 19003841e965bbf56fd06824d6093620c1b66f9e)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt; [Google]</content>
</entry>
<entry>
<title>bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) (GH-9581)</title>
<updated>2018-10-07T04:33:37Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-10-07T04:33:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a2189353f744f79a43511707c090c3807a4978e'/>
<id>urn:sha1:1a2189353f744f79a43511707c090c3807a4978e</id>
<content type='text'>
(cherry picked from commit d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09)

Co-authored-by: Cheryl Sabella &lt;cheryl.sabella@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8247)</title>
<updated>2018-07-11T13:56:45Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-11T13:56:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a1db32949b4813e9ac04e672fcb5bc97072a428'/>
<id>urn:sha1:0a1db32949b4813e9ac04e672fcb5bc97072a428</id>
<content type='text'>
Change test_logging.SMTPHandlerTest timeout from 8 seconds to 1
minute. The test failed randomly on the slow x86 Gentoo Refleaks 3.7
buildbot.
(cherry picked from commit 31b50b8cbfbf49d5fc17c612cf0dfaa4d0c24983)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008) (GH-8044)</title>
<updated>2018-07-02T09:35:09Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-02T09:35:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f49afc3d983350f4f04d221a26573721f23c475'/>
<id>urn:sha1:6f49afc3d983350f4f04d221a26573721f23c475</id>
<content type='text'>
(cherry picked from commit 087570af6d5d39b51bdd5e660a53903960e58678)

Co-authored-by: Xtreak &lt;tirkarthi@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)</title>
<updated>2018-06-08T14:01:56Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-08T14:01:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f44203d782e397941c17d96e6a1f9dc1df08b3e6'/>
<id>urn:sha1:f44203d782e397941c17d96e6a1f9dc1df08b3e6</id>
<content type='text'>
This solves a regression in logging config due to changes in BPO-23835.
(cherry picked from commit 214f18e49feb6a9d6c05aa09a4bb304905e81334)

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
</entry>
<entry>
<title>bpo-32593: Drop FreeBSD 9 and older support (#5232)</title>
<updated>2018-01-22T17:32:50Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2018-01-22T17:32:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=13ff24582c99dfb439b1af7295b401415e7eb05b'/>
<id>urn:sha1:13ff24582c99dfb439b1af7295b401415e7eb05b</id>
<content type='text'>
Drop support of FreeBSD 9 and older.</content>
</entry>
<entry>
<title>bpo-32297: Few misspellings found in Python source code comments. (#4803)</title>
<updated>2017-12-14T11:04:53Z</updated>
<author>
<name>Mike</name>
<email>mehanig@gmail.com</email>
</author>
<published>2017-12-14T11:04:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=53f7a7c2814fbfd8a29200926601a32fa48bacb3'/>
<id>urn:sha1:53f7a7c2814fbfd8a29200926601a32fa48bacb3</id>
<content type='text'>
* Fix multiple typos in code comments

* Add spacing in comments (test_logging.py, test_math.py)

* Fix spaces at the beginning of comments in test_logging.py
</content>
</entry>
<entry>
<title>bpo-28668: test.support.requires_multiprocessing_queue is removed (GH-4560)</title>
<updated>2017-12-01T07:08:49Z</updated>
<author>
<name>xdegaye</name>
<email>xdegaye@gmail.com</email>
</author>
<published>2017-12-01T07:08:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bf2b65e413ca5ec705c7e2f463d0d75e947588a4'/>
<id>urn:sha1:bf2b65e413ca5ec705c7e2f463d0d75e947588a4</id>
<content type='text'>
Skip tests with test.support.import_module('multiprocessing.synchronize')
instead when the semaphore implementation is broken or missing.</content>
</entry>
<entry>
<title>bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044)</title>
<updated>2017-10-19T17:24:55Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2017-10-19T17:24:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ce9e62544571e7ade7186697d5dd065fb4c5243f'/>
<id>urn:sha1:ce9e62544571e7ade7186697d5dd065fb4c5243f</id>
<content type='text'>
This used to be the case on Python 2.  Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly.  This
makes nested log adapters not execute their ``process()`` method.  This patch
fixes the issue.

Also, now proxying `name`, too, to make `repr()` work with nested log adapters.

New tests added.</content>
</entry>
<entry>
<title>bpo-31457: Make the `LoggerAdapter.manager` property settable (#4042)</title>
<updated>2017-10-19T00:28:51Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2017-10-19T00:28:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b6a118a45ac2eded1348fea6ed300d5651f7471'/>
<id>urn:sha1:0b6a118a45ac2eded1348fea6ed300d5651f7471</id>
<content type='text'>
Due to a bug in the initial fix, the setter was in fact creating a different
property.  This is now fixed.</content>
</entry>
</feed>
