New submission from STINNER Victor <vstin...@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.deme...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38875> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com