gh-106368: Add tests for permutation helpers in Argument Clinic#106407
gh-106368: Add tests for permutation helpers in Argument Clinic#106407erlend-aasland merged 1 commit into
Conversation
Added new test class PermutationTests()
sobolevn
left a comment
There was a problem hiding this comment.
Looks good to me! 👍
Sorry, something went wrong.
|
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
…pythonGH-106407) Added new test class PermutationTests() (cherry picked from commit 8f6df5e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
…pythonGH-106407) Added new test class PermutationTests() (cherry picked from commit 8f6df5e) Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
Hm, I should have put these in the existing |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Arch Linux TraceRefs 3.x has failed when building commit 8f6df5e. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/484/builds/3602 Failed tests:
Summary of the results of the build (if available): == Click to see traceback logsremote: Enumerating objects: 34, done.
remote: Counting objects: 2% (1/34)
remote: Counting objects: 5% (2/34)
remote: Counting objects: 8% (3/34)
remote: Counting objects: 11% (4/34)
remote: Counting objects: 14% (5/34)
remote: Counting objects: 17% (6/34)
remote: Counting objects: 20% (7/34)
remote: Counting objects: 23% (8/34)
remote: Counting objects: 26% (9/34)
remote: Counting objects: 29% (10/34)
remote: Counting objects: 32% (11/34)
remote: Counting objects: 35% (12/34)
remote: Counting objects: 38% (13/34)
remote: Counting objects: 41% (14/34)
remote: Counting objects: 44% (15/34)
remote: Counting objects: 47% (16/34)
remote: Counting objects: 50% (17/34)
remote: Counting objects: 52% (18/34)
remote: Counting objects: 55% (19/34)
remote: Counting objects: 58% (20/34)
remote: Counting objects: 61% (21/34)
remote: Counting objects: 64% (22/34)
remote: Counting objects: 67% (23/34)
remote: Counting objects: 70% (24/34)
remote: Counting objects: 73% (25/34)
remote: Counting objects: 76% (26/34)
remote: Counting objects: 79% (27/34)
remote: Counting objects: 82% (28/34)
remote: Counting objects: 85% (29/34)
remote: Counting objects: 88% (30/34)
remote: Counting objects: 91% (31/34)
remote: Counting objects: 94% (32/34)
remote: Counting objects: 97% (33/34)
remote: Counting objects: 100% (34/34)
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 5% (1/17)
remote: Compressing objects: 11% (2/17)
remote: Compressing objects: 17% (3/17)
remote: Compressing objects: 23% (4/17)
remote: Compressing objects: 29% (5/17)
remote: Compressing objects: 35% (6/17)
remote: Compressing objects: 41% (7/17)
remote: Compressing objects: 47% (8/17)
remote: Compressing objects: 52% (9/17)
remote: Compressing objects: 58% (10/17)
remote: Compressing objects: 64% (11/17)
remote: Compressing objects: 70% (12/17)
remote: Compressing objects: 76% (13/17)
remote: Compressing objects: 82% (14/17)
remote: Compressing objects: 88% (15/17)
remote: Compressing objects: 94% (16/17)
remote: Compressing objects: 100% (17/17)
remote: Compressing objects: 100% (17/17), done.
remote: Total 20 (delta 16), reused 6 (delta 3), pack-reused 0
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '8f6df5e9cbc3a1689601714192aa6ecbb23e1927'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 8f6df5e9cb gh-106368: Add tests for permutation helpers in Argument Clinic (#106407)
Switched to and reset branch 'main'
Objects/object.c:2197: _Py_ForgetReference: Assertion failed: invalid object chain
Enable tracemalloc to get the memory block allocation traceback
object address : 0x7fc2dd670ee0
object refcount : 0
object type : 0x55b810834bc0
object type name: str
object repr : <refcnt 0 at 0x7fc2dd670ee0>
Fatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed
Python runtime state: initialized
Current thread 0x00007fc2ef2de740 (most recent call first):
<no Python frame>
Debug memory block at address p=0x7fc2ef205e00: API '�'
18302063728033390045 bytes originally requested
The 7 pad bytes at p-7 are not all FORBIDDENBYTE (0xfd):
at p-7: 0xdd *** OUCH
at p-6: 0xdd *** OUCH
at p-5: 0xdd *** OUCH
at p-4: 0xdd *** OUCH
at p-3: 0xdd *** OUCH
at p-2: 0xdd *** OUCH
at p-1: 0xdd *** OUCH
Because memory is corrupted at the start, the count of bytes requested
may be bogus, and checking the trailing pad bytes may segfault.
The 8 pad bytes at tail=0xfdfe7dc0ed1e3bdd are Fatal Python error: Segmentation fault
Current thread 0x00007fc2ef2de740 (most recent call first):
<no Python frame>
Extension modules: _testcapi, _xxsubinterpreters (total: 2)
make: *** [Makefile:2010: buildbottest] Segmentation fault (core dumped)
Cannot open file '/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/test-results.xml' for upload |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot s390x RHEL7 LTO 3.11 has failed when building commit 9f8aa7a. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/924/builds/913 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 413 tests OK. 10 slowest tests:
1 test failed: 20 tests skipped: 2 re-run tests: Total duration: 9 min 58 sec Click to see traceback logsTraceback (most recent call last):
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/test_tools/test_freeze.py", line 28, in test_freeze_simple_script
executable = helper.freeze(python, scriptfile, outdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Tools/freeze/test/freeze.py", line 198, in freeze
_run_quiet([MAKE, '-C', os.path.dirname(scriptfile)])
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Tools/freeze/test/freeze.py", line 25, in _run_quiet
return subprocess.run(
^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/make', '-C', '/tmp/tmpuzyw3yoh']' returned non-zero exit status 2.
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
cache[rtype].remove(name)
KeyError: '/psm_79b4645b'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/tmpuzyw3yoh/cpython/Lib/sysconfig.py", line 715, in get_config_var
return get_config_vars().get(name)
^^^^^^^^^^^^^^^^^
File "/tmp/tmpuzyw3yoh/cpython/Lib/sysconfig.py", line 670, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/tmp/tmpuzyw3yoh/cpython/Lib/sysconfig.py", line 531, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_sysconfigdata__linux_s390x-linux-gnu'
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/test_tools/test_freeze.py", line 28, in test_freeze_simple_script
executable = helper.freeze(python, scriptfile, outdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Tools/freeze/test/freeze.py", line 198, in freeze
_run_quiet([MAKE, '-C', os.path.dirname(scriptfile)])
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Tools/freeze/test/freeze.py", line 25, in _run_quiet
return subprocess.run(
^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/make', '-C', '/tmp/tmp4po6o4wf']' returned non-zero exit status 2.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/tmp4po6o4wf/cpython/Lib/sysconfig.py", line 715, in get_config_var
return get_config_vars().get(name)
^^^^^^^^^^^^^^^^^
File "/tmp/tmp4po6o4wf/cpython/Lib/sysconfig.py", line 670, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/tmp/tmp4po6o4wf/cpython/Lib/sysconfig.py", line 531, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_sysconfigdata__linux_s390x-linux-gnu'
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/test___all__.py", line 129, in test_all
self.check_all(modname)
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/test___all__.py", line 43, in check_all
with warnings_helper.check_warnings(
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/contextlib.py", line 144, in __exit__
next(self.gen)
File "/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/support/warnings_helper.py", line 185, in _filterwarnings
raise AssertionError("unhandled warning %s" % reraise[0])
AssertionError: unhandled warning {message : DeprecationWarning("invalid escape sequence '\\?'"), category : 'DeprecationWarning', filename : '/home/dje/cpython-buildarea/3.11.edelsohn-rhel-z.lto/build/Lib/test/test_httpservers.py', lineno : 445, line : None}
|
Sorry, something went wrong.
* main: (39 commits) pythongh-102542 Remove unused bytes object and bytes slicing (python#106433) Clarify state of CancelledError in doc (python#106453) pythongh-64595: Fix regression in file write logic in Argument Clinic (python#106449) pythongh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (python#106443) tp_flags docs: fix indentation (python#106420) pythongh-104050: Partially annotate Argument Clinic CLanguage class (python#106437) pythongh-106368: Add tests for formatting helpers in Argument Clinic (python#106415) pythongh-104050: Annotate Argument Clinic parameter permutation helpers (python#106431) pythongh-104050: Annotate toplevel functions in clinic.py (python#106435) pythongh-106320: Fix specialize.c compilation by including pycore_pylifecycle.h (python#106434) Add some codeowners for `Tools/clinic/` (python#106430) pythongh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (python#106423) pythongh-61215: Rename `wait_until_any_call` to `wait_until_any_call_with` (python#106414) pythongh-106162: array: suppress warning in test_array (python#106404) pythongh-106320: Remove _PyInterpreterState_HasFeature() (python#106425) pythonGH-106360: Support very basic superblock introspection (python#106422) pythongh-106406: Fix _Py_IsInterpreterFinalizing() in _winapi.c (python#106408) pythongh-106396: Special-case empty format spec to gen empty JoinedStr node (python#106401) pythongh-106368: Add tests for permutation helpers in Argument Clinic (python#106407) pythonGH-106008: Fix refleak when peepholing `None` comparisons (python#106367) ...
Added new test class PermutationTests()