Skip to content
Merged
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
Apply suggestions from code review
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
  • Loading branch information
sobolevn and eendebakpt authored Nov 29, 2022
commit 9c4e9317ba9c95091d74621cf7f30964cdca6e4d
4 changes: 2 additions & 2 deletions Lib/test/test_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1574,9 +1574,9 @@ def __int__(self):

class RaisingNumber:
def __int__(self):
raise RuntimeError('int') # should be not `TypeErorr`
raise RuntimeError('int') # should not be `TypeError`
def __index__(self):
raise RuntimeError('index') # should be not `TypeErorr`
raise RuntimeError('index') # should not be `TypeError`

rn = RaisingNumber()
self.assertRaisesRegex(RuntimeError, 'int', operator.mod, '%d', rn)
Expand Down