Skip to content

bpo-45240: added REPORT_NDIFF to pdb doctests#28453

Open
akulakov wants to merge 3 commits into
python:mainfrom
akulakov:45240-Add-report-ndiff-option-to-pdb-tests
Open

bpo-45240: added REPORT_NDIFF to pdb doctests#28453
akulakov wants to merge 3 commits into
python:mainfrom
akulakov:45240-Add-report-ndiff-option-to-pdb-tests

Conversation

@akulakov

@akulakov akulakov commented Sep 19, 2021

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Oct 25, 2021
@MaxwellDupre

Copy link
Copy Markdown
Contributor

I get:
./python -m test -vvv test_pdb
== CPython 3.11.0a5+ (heads/main:92a8fd08c7, Mar 1 2022, 17:51:16) [GCC 11.2.0]
== Linux-5.13.0-30-generic-x86_64-with-glibc2.34 little-endian
== cwd: /home/me/Documents/cpython/build/test_python_26282æ
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 0.79 Run tests sequentially
0:00:00 load avg: 0.79 [1/1] test_pdb
test test_pdb crashed -- Traceback (most recent call last):
File "/home/me/Documents/cpython/Lib/test/libregrtest/runtest.py", line 340, in _runtest_inner
refleak = _runtest_inner2(ns, test_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Documents/cpython/Lib/test/libregrtest/runtest.py", line 280, in _runtest_inner2
the_module = importlib.import_module(abstest)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Documents/cpython/Lib/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 924, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/me/Documents/cpython/Lib/test/test_pdb.py", line 18, in
from test.test_doctest import _FakeInput
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Documents/cpython/Lib/test/test_doctest.py", line 2816, in
if supports_unicode and not support.has_no_debug_ranges():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Documents/cpython/Lib/test/support/init.py", line 438, in has_no_debug_ranges
return bool(config['no_debug_ranges'])
~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'no_debug_ranges'

test_pdb failed (uncaught exception)

== Tests result: FAILURE ==

1 test failed:
test_pdb

Total duration: 218 ms
Tests result: FAILURE

@akulakov

Copy link
Copy Markdown
Contributor Author

I cannot reproduce on MacOS with latest main branch merged into the PR branch:

Ran 57 tests in 1.403s

OK

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1.6 sec
Tests result: SUCCESS

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Apr 9, 2026
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time. tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants