mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
This commit is contained in:
parent
3ddc435af6
commit
ce8e33a095
107 changed files with 436 additions and 794 deletions
|
@ -3056,7 +3056,7 @@ class Test_Assertions(TestCase):
|
|||
try:
|
||||
self.assertRaises(KeyError, lambda: None)
|
||||
except self.failureException as e:
|
||||
self.assert_("KeyError not raised" in e.args, str(e))
|
||||
self.assert_("KeyError not raised" in e, str(e))
|
||||
else:
|
||||
self.fail("assertRaises() didn't fail")
|
||||
try:
|
||||
|
@ -3073,7 +3073,7 @@ class Test_Assertions(TestCase):
|
|||
with self.assertRaises(KeyError):
|
||||
pass
|
||||
except self.failureException as e:
|
||||
self.assert_("KeyError not raised" in e.args, str(e))
|
||||
self.assert_("KeyError not raised" in e, str(e))
|
||||
else:
|
||||
self.fail("assertRaises() didn't fail")
|
||||
try:
|
||||
|
@ -3591,9 +3591,6 @@ class TestDiscovery(TestCase):
|
|||
def __eq__(self, other):
|
||||
return self.path == other.path
|
||||
|
||||
# Silence Py3k warning
|
||||
__hash__ = None
|
||||
|
||||
loader._get_module_from_name = lambda name: Module(name)
|
||||
def loadTestsFromModule(module, use_load_tests):
|
||||
if use_load_tests:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue