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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:af383a8e-d386-931f-5377-f62ddefdb585 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B086:33C049:7968A2:A41AC7:6969DDAD |
| html-safe-nonce | fef0b07dfc3c2c495147ed207a38577d1ec99d9312674b3a52a20a0d48add095 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDg2OjMzQzA0OTo3OTY4QTI6QTQxQUM3OjY5NjlEREFEIiwidmlzaXRvcl9pZCI6IjUxNDMyMzE2NzUyNjAwNjcyNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12d42666adb9d5cc3c3217600e0220323cd6704912a4c17ceb3774abb2d6cc2c |
| hovercard-subject-tag | pull_request:947645848 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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