| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| support.gc_collect() | ||
|
|
||
| @support.cpython_only | ||
| @unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build') |
There was a problem hiding this comment.
You didn't copy the comment oon Py_TRACE_REFS skip which makes this skip mysterious.
What do you think of adding a decorator to test.support which would do @support.cpython_only + @unittest.skipIf(support.Py_TRACE_REFS) with all needed comments explaining why Py_TRACE_REFS is skipped?
Sorry, something went wrong.
There was a problem hiding this comment.
Great idea! Working on it.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. It looks better with @support.nomemtest decorator!
Sorry, something went wrong.
| import_module('_testcapi') | ||
| return f(*args, **kwargs) | ||
|
|
||
| return unittest.skipIf( |
There was a problem hiding this comment.
You may move the Py_TRACE_REFS comment here.
Sorry, something went wrong.
There was a problem hiding this comment.
I would prefer to keep it :)
I moved it closer to the Py_TRACE_REFS definition.
It was really helpful for me when I first learned about this skip rule.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM (Ooops, I forgot to select (o) Approve).
Sorry, something went wrong.
|
Thank you for your help! |
Sorry, something went wrong.
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-152281 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
Sorry, @sobolevn, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 1cbe460eb6c5f40980463f381b3096c92320ff84 3.13 |
Sorry, something went wrong.
|
GH-152282 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-152286 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Now all tests that use _testcapi.set_nomemory have all the right skips :)