Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Amend test_ucn.test_errors
  • Loading branch information
erlend-aasland committed Apr 5, 2024
commit af25677bf9a2b5a0021682f51b811d334a097937
2 changes: 1 addition & 1 deletion Lib/test/test_ucn.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def check_version(testfile):

def test_errors(self):
self.assertRaises(TypeError, unicodedata.name)
self.assertRaises(TypeError, unicodedata.name, 'xx')
self.assertRaises(ValueError, unicodedata.name, 'xx')
self.assertRaises(TypeError, unicodedata.lookup)
self.assertRaises(KeyError, unicodedata.lookup, 'unknown')

Expand Down