Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `test_py_compile.py` by jackh-ncl · Pull Request #93235 · python/cpython · GitHub
Open Graph Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `test_py_compile.py` by jackh-ncl · Pull Request #93235 · python/cpython
X Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `test_py_compile.py` by jackh-ncl · Pull Request #93235 · python/cpython
Description: #92886 Before: $ ./python.exe -Om unittest test.test_py_compile ....FF......s............s...... ====================================================================== FAIL: test_stdin (test.test_py_compile.PyCompileCLITestCase.test_stdin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/.../dev/cpython/Lib/test/test_py_compile.py", line 252, in test_stdin self.assertTrue(os.path.exists(self.cache_path)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: False is not true ====================================================================== FAIL: test_with_files (test.test_py_compile.PyCompileCLITestCase.test_with_files) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/.../dev/cpython/Lib/test/test_py_compile.py", line 259, in test_with_files self.assertTrue(os.path.exists(self.cache_path)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: False is not true ---------------------------------------------------------------------- Ran 32 tests in 0.322s FAILED (failures=2, skipped=2) After: ./python.exe -Om unittest test.test_py_compile ............s............s...... ---------------------------------------------------------------------- Ran 32 tests in 0.307s OK (skipped=2)
Open Graph Description: #92886 Before: $ ./python.exe -Om unittest test.test_py_compile ....FF......s............s...... ====================================================================== FAIL: test_stdin (test.test_...
X Description: #92886 Before: $ ./python.exe -Om unittest test.test_py_compile ....FF......s............s...... ====================================================================== FAIL: test_stdin (test.test_...
Opengraph URL: https://github.com/python/cpython/pull/93235
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:422cc46c-3279-cffc-9f61-867be97d0655 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C06E:15A631:69EDEB:90372B:6969DD2A |
| html-safe-nonce | 8c3966047472671765c76ca8bc92bcad1165668c4e575244c87457a9b04a6c54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDZFOjE1QTYzMTo2OUVERUI6OTAzNzJCOjY5NjlERDJBIiwidmlzaXRvcl9pZCI6Ijg2NDA4OTkwOTIzMTQ3MDkyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 638db4d43d230ca7bf96795bfaa6f05d40199c4bcfccbaa8dbe86f82916bb7dd |
| hovercard-subject-tag | pull_request:947645848 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/93235/files |
| twitter:image | https://avatars.githubusercontent.com/u/1750152?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1750152?s=400&v=4 |
| og:image:alt | #92886 Before: $ ./python.exe -Om unittest test.test_py_compile ....FF......s............s...... ====================================================================== FAIL: test_stdin (test.test_... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width