GeezerVison is showing github.com — gh-109402: Fix regrtest findtests() by vstinner · Pull Request #109403 · python/cpython
Conversation
vstinner
commented
Sep 14, 2023
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Check for the full module name in SPLITTESTDIRS, not the relative module name.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Check for the full module name in SPLITTESTDIRS, not the relative
module name.
|
@sobolevn: Can you please check if this change fix your issue?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oh, sorry, I've missed this PR and opened another one: #109404
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Does this change fix your issue?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Steps to test this:
- Checkout gh-108303: Move
test_future into its own subdir #109368
- Rename
Lib/test/test_future_stmt/test_future.py to Lib/test/test_future_stmt/test_future_stmt.py to reproduce the problem
- Make sure that tests fail
- Copy the proposed solution
- Make sure that they pass
» ./python.exe -m test test_future_stmt
0:00:00 load avg: 1.91 Run 5 tests sequentially
0:00:00 load avg: 1.91 [1/5] test_future_stmt.test___future__
0:00:00 load avg: 1.91 [2/5] test_future_stmt.test_future3
0:00:00 load avg: 1.91 [3/5] test_future_stmt.test_future4
0:00:00 load avg: 1.91 [4/5] test_future_stmt.test_future5
0:00:00 load avg: 1.91 [5/5] test_future_stmt.test_future_stmt
== Tests result: SUCCESS ==
All 5 tests OK.
Total duration: 173 ms
Total tests: run=32
Total test files: run=5/5
Result: SUCCESS
It works for me! Thanks!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
0:00:00 load avg: 1.91 [2/5] test_future_stmt.test_future3
0:00:00 load avg: 1.91 [3/5] test_future_stmt.test_future4
0:00:00 load avg: 1.91 [4/5] test_future_stmt.test_future5
0:00:00 load avg: 1.91 [5/5] test_future_stmt.test_future_stmt
These test names are not helpful. Would it be possible to come with better names while we are moving code/renaming files anyway?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
0:00:00 load avg: 1.91 [1/5] test_future_stmt.test___future__
0:00:00 load avg: 1.91 [5/5] test_future_stmt.test_future_stmt
Just from the name, it's not clear which test is testing the future statement... Both? Maybe propose a better name?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Ignore my comments here, there were for PR #109368 :-)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
It works for me! Thanks!
Good. I prefer to avoid isdir() if possible.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|