We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10491eb commit eee5504Copy full SHA for eee5504
tests/cloudpickle_test.py
@@ -619,10 +619,8 @@ def foo(self):
619
self.assertEqual(depickled_class().foo(), 'it works!')
620
self.assertEqual(depickled_instance.foo(), 'it works!')
621
622
- # It should still be invalid to construct an instance of the abstract
623
- # class without implementing its methods.
624
- with self.assertRaises(TypeError):
625
- depickled_base()
+ # assertRaises doesn't return a contextmanager in python 2.6 :(.
+ self.failUnlessRaises(TypeError, depickled_base)
626
627
class DepickledBaseSubclass(depickled_base):
628
def foo(self):
0 commit comments