Commit 84ad7ebe authored by Denis Bilenko's avatar Denis Bilenko

test__ares_host_result.py: add test for protocol 3 when available (on python3)

parent 20f6d7b7
...@@ -22,6 +22,12 @@ class TestPickle(unittest.TestCase): ...@@ -22,6 +22,12 @@ class TestPickle(unittest.TestCase):
def test2(self): def test2(self):
return self._test(2) return self._test(2)
if pickle.HIGHEST_PROTOCOL == 3:
def test3(self):
return self._test(3)
else:
assert pickle.HIGHEST_PROTOCOL == 2, pickle.HIGHEST_PROTOCOL
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment