bughelp wanted
説明
When building cloudpickle 0.8.0 package for openSUSE I have 3 test failures:
[ 10s] =================================== FAILURES ===================================
[ 10s] ___________ CloudPickleFileTests.test_pickling_special_file_handles ____________
[ 10s]
[ 10s] self = <tests.cloudpickle_file_test.CloudPickleFileTests testMethod=test_pickling_special_file_handles>
[ 10s]
[ 10s] def test_pickling_special_file_handles(self):
[ 10s] # Warning: if you want to run your tests with nose, add -s option
[ 10s] for out in sys.stdout, sys.stderr: # Regression test for SPARK-3415
[ 10s] > self.assertEqual(out, pickle.loads(cloudpickle.dumps(out)))
[ 10s] E AssertionError: <_pytest.capture.EncodedFile object at 0x7fc4acbcb6d0> != <_pytest.capture.EncodedFile object at 0x7fc4981be990>
[ 10s]
[ 10s] tests/cloudpickle_file_test.py:98: AssertionError
[ 10s] __________________ CloudPickleTest.test_pickling_file_handles __________________
[ 10s]
[ 10s] self = <tests.cloudpickle_test.CloudPickleTest testMethod=test_pickling_file_handles>
[ 10s]
[ 10s] def test_pickling_file_handles(self):
[ 10s] out1 = sys.stderr
[ 10s] out2 = pickle.loads(cloudpickle.dumps(out1, protocol=self.protocol))
[ 10s] > self.assertEqual(out1, out2)
[ 10s] E AssertionError: <_pytest.capture.EncodedFile object at 0x7fc4acbcb710> != <_pytest.capture.EncodedFile object at 0x7fc4aa0ef150>
[ 10s]
[ 10s] tests/cloudpickle_test.py:119: AssertionError
[ 10s] _____________ Protocol2CloudPickleTest.test_pickling_file_handles ______________
[ 10s]
[ 10s] self = <tests.cloudpickle_test.Protocol2CloudPickleTest testMethod=test_pickling_file_handles>
[ 10s]
[ 10s] def test_pickling_file_handles(self):
[ 10s] out1 = sys.stderr
[ 10s] out2 = pickle.loads(cloudpickle.dumps(out1, protocol=self.protocol))
[ 10s] > self.assertEqual(out1, out2)
[ 10s] E AssertionError: <_pytest.capture.EncodedFile object at 0x7fc4acbcb710> != <_pytest.capture.EncodedFile object at 0x7fc4aa179ed0>
[ 10s]
[ 10s] tests/cloudpickle_test.py:119: AssertionError
0.7.0 didn't have any issues with these tests. Full build log: cloudpickle.txt