GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Modernize `test_inspect` by adding real pos-only parameters · Issue #103406 · python/cpython Closed Labels testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionRight now cpython/Lib/test/test_inspect.py Lines 2465 to 2469 in ecad802
cpython/Lib/test/test_inspect.py Lines 2519 to 2522 in ecad802
cpython/Lib/test/test_inspect.py Lines 3047 to 3052 in ecad802
cpython/Lib/test/test_inspect.py Lines 3559 to 3565 in ecad802
cpython/Lib/test/test_inspect.py Lines 4160 to 4166 in ecad802
And maybe others. It makes code more complex, unclear, and hides the real purpose of these tests. This is not a design decision, but rather a limitation at the time. Commits are quite old and pos-only syntax was not available 9 and 11 years ago: So, I propose to simplify these tests and make them more correct by using explicit pos only parameters. Plus, we can keep one test like this to be sure that chaning a parameter kind still works as before. But, there's no need in keeping these old tests the way they are. I will send a PR with the fix 👍 Linked PRsActivity
MetadataMetadataAssigneesLabelstestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |