Message301296
| Author | nascheme |
|---|---|
| Recipients | nascheme, vstinner |
| Date | 2017-09-05.04:28:07 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1504585688.62.0.651214457359.issue31342@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The key is how the test is run. If you run: $ ./python Lib/test/<some script>.py Then the Lib/test gets added to the first part of sys.path. Then "import bisect" imports the Lib/test/bisect.py module rather than Lib/bisect.py. Obvious options seem to be: 1. rename Lib/test/bisect.py to something else 2. don't allow running files in Lib/test as scripts To me, #2 is not a good option. I'm attaching the output of: ./python.exe Lib/test/regrtest.py -v test_datetime 2>&1 In case it is helpful. I pruned some lines to keep the file smaller. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-09-05 04:28:08 | nascheme | set | recipients: + nascheme, vstinner |
| 2017-09-05 04:28:08 | nascheme | set | messageid: <1504585688.62.0.651214457359.issue31342@psf.upfronthosting.co.za> |
| 2017-09-05 04:28:08 | nascheme | link | issue31342 messages |
| 2017-09-05 04:28:08 | nascheme | create | |