• Victor Stinner's avatar
    bpo-30635: Fix refleak in test_c_locale_coercion (#2126) · 023564bf
    Victor Stinner authored
    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.
    023564bf
test_c_locale_coercion.py 10.4 KB