]> granicus.if.org Git - python/commit
bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913)
authorPablo Galindo <Pablogsal@gmail.com>
Tue, 16 Oct 2018 14:17:57 +0000 (15:17 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Oct 2018 14:17:57 +0000 (15:17 +0100)
commit137b0632dccb992ca11e9445142fb33a29c33a51
treeb18fb7d2c0f2d5d4ed2943a11f57ea513a27de92
parent1a4a10d9f125499f610787ffda8846a569fc1d97
bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913)

When runnint test_logging with --huntrleaks after commit
18fb1fb943b7dbd7f8a76017ee2a67ef13effb85, test_out_of_order fails
to raise ValueError due to the fact that the new test
test_out_of_order_with_dollar_style mutates the out_of_order
dictionary. Even if the test copies the dictionary first, the mutation
is done in a very deep level so the original one is also affected.
Lib/test/test_logging.py