]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109972: Split test_gdb.py into test_gdb package (#109977) (… (#110343)
authorVictor Stinner <vstinner@python.org>
Wed, 4 Oct 2023 10:53:28 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 10:53:28 +0000 (10:53 +0000)
commit6c98c734c7bcef2eee870bf4e5b4326bb81b320c
treeee78e4108295e4fe286576aea62e940f4c5e7c3e
parent5039db7f9b2213634cd053a7f4a1e6000edf8e2f
[3.11] gh-109972: Split test_gdb.py into test_gdb package (#109977) (… (#110343)

[3.12] gh-109972: Split test_gdb.py into test_gdb package (#109977) (#110339)

gh-109972: Split test_gdb.py into test_gdb package (#109977)

Split test_gdb.py file into a test_gdb package made of multiple
tests, so tests can now be run in parallel.

* Create Lib/test/test_gdb/ directory.
* Split test_gdb.py into multiple files in Lib/test/test_gdb/
  directory.
* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory.
  Update get_sample_script(): use __file__ to locate gdb_sample.py.
* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.
* Explicitly skip test_gdb on Windows. Previously, test_gdb was
  skipped even if gdb was available because of
  gdb_has_frame_select().

(cherry picked from commit 8f324b7ecd2df3036fab098c4c8ac185ac07b277)
(cherry picked from commit e7a61d34b7897ac6cff53add2ec03309a5ff8350)
Lib/test/libregrtest/runtest.py
Lib/test/test_gdb.py [deleted file]
Lib/test/test_gdb/__init__.py [new file with mode: 0644]
Lib/test/test_gdb/gdb_sample.py [moved from Lib/test/gdb_sample.py with 75% similarity]
Lib/test/test_gdb/test_backtrace.py [new file with mode: 0644]
Lib/test/test_gdb/test_cfunction.py [new file with mode: 0644]
Lib/test/test_gdb/test_misc.py [new file with mode: 0644]
Lib/test/test_gdb/test_pretty_print.py [new file with mode: 0644]
Lib/test/test_gdb/util.py [new file with mode: 0644]
Makefile.pre.in
Misc/NEWS.d/next/Tests/2023-09-28-12-25-19.gh-issue-109972.GYnwIP.rst [new file with mode: 0644]