8000 gh-92886: fixed tests that were breaking while running with basic optimizations enabled (-O, assertions off) by jackh-ncl · Pull Request #93174 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92886: fixed tests that were breaking while running with basic optimizations enabled (-O, assertions off) #93174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Using self.assertEqual in test_coroutines.py
  • Loading branch information
jackh-ncl committed May 24, 2022
commit ff6b191fd9a2300f707e84e75ebf6e18da59a069
3 changes: 1 addition & 2 deletions Lib/test/test_coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,8 +1279,7 @@ async def __aexit__(self, *exc):

async def func():
async with CM():
if (1, ) != 1:
raise AssertionError
self.assertEqual((1, ), 1)

with self.assertRaises(AssertionError):
run_async(func())
Expand Down
0