mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.
This commit is contained in:
parent
5a6f4585fd
commit
250ad613f3
13 changed files with 40 additions and 43 deletions
|
@ -416,12 +416,12 @@ class SimpleServerTestCase(unittest.TestCase):
|
|||
result = multicall()
|
||||
|
||||
# result.results contains;
|
||||
# [{'faultCode': 1, 'faultString': '<type \'exceptions.Exception\'>:'
|
||||
# [{'faultCode': 1, 'faultString': '<class \'exceptions.Exception\'>:'
|
||||
# 'method "this_is_not_exists" is not supported'>}]
|
||||
|
||||
self.assertEqual(result.results[0]['faultCode'], 1)
|
||||
self.assertEqual(result.results[0]['faultString'],
|
||||
'<type \'Exception\'>:method "this_is_not_exists" '
|
||||
'<class \'Exception\'>:method "this_is_not_exists" '
|
||||
'is not supported')
|
||||
except (xmlrpclib.ProtocolError, socket.error) as e:
|
||||
# ignore failures due to non-blocking socket 'unavailable' errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue