[Python-checkins] [python/cpython] 023564: bpo-30635: Fix refleak in test_c_locale_coercion (...
GitHub
noreply at github.com
Tue Jun 13 07:32:33 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 023564bf7d95f8e6a4b790491811e75ce497a071
https://github.com/python/cpython/commit/023564bf7d95f8e6a4b790491811e75ce497a071
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-06-13 (Tue, 13 Jun 2017)
Changed paths:
M Lib/test/test_c_locale_coercion.py
Log Message:
-----------
bpo-30635: Fix refleak in test_c_locale_coercion (#2126)
When checking for reference leaks, test_c_locale_coercion is run
multiple times and so _LocaleCoercionTargetsTestCase.setUpClass() is
called multiple times. setUpClass() appends new value at each call,
so it looks like a reference leak.
Moving the setup from setUpClass() to setUpModule() avoids
this, eliminating the false alarm.
More information about the Python-checkins
mailing list