[New-bugs-announce] [issue38875] test_capi: test_trashcan_python_class1() and test_trashcan_python_class2() take one minute on my laptop

STINNER Victor report at bugs.python.org
Thu Nov 21 03:10:35 EST 2019


New submission from STINNER Victor <vstinner at python.org>:

bpo-35983 added new tests to test_capi: test_capi now takes 1 minute 31 seconds :-( Previously, test_capi only took 9.5 seconds!

commit 351c67416ba4451eb3928fa0b2e933c2f25df1a3
Author: Jeroen Demeyer <J.Demeyer at UGent.be>
Date:   Fri May 10 19:21:11 2019 +0200

    bpo-35983: skip trashcan for subclasses (GH-11841)
    
    Add new trashcan macros to deal with a double deallocation that could occur when the `tp_dealloc` of a subclass calls the `tp_dealloc` of a base class and that base class uses the trashc
an mechanism.
    
    Patch by Jeroen Demeyer.

Attached PR modify these two tests to require the "cpu" resource. So by default, tests are not run and test_capi takes again 9.5 seconds instead of 1 min 30 sec.

Note: Travis CI runs the test suite using -uall,-cpu.

----------
components: Tests
messages: 357142
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_capi: test_trashcan_python_class1() and test_trashcan_python_class2() take one minute on my laptop
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38875>
_______________________________________


More information about the New-bugs-announce mailing list