I was looking at migrating unit tests to pytest and found this test which doesn't pass: https://gist.github.com/udim/a71fcb278b56a9a5b7962f4588e14efb (stack overflow) (requires installing python3.7 and "python3.7 -m pip install pytest".) The same command passes with python2.7 and python3.5.
I tried isolating the issue and created a test case which fails similarly on all Python versions I tried (2.7, 3.5, 3.7): def test_local_nested_class(self): class LocalNestedClass(object): def __init__(self, data): # TODO: commenting out the call to __init__ makes the test pass super(LocalNestedClass, self).__init__() self.data = data self.assertEqual('abc', loads(dumps(LocalNestedClass('abc'))).data) (added to PicklerTest) Any ideas why this fails, and why removing the call to super(...).__init__() makes a difference? Is DataflowRunnerTest::test_remote_runner_display_data trying to do something that's not supposed to work?
smime.p7s
Description: S/MIME Cryptographic Signature