Remove the pickle compatibility stuff

This commit is contained in:
Dave Halter
2020-07-02 01:29:54 +02:00
parent a25e192ff9
commit 07fc1ef837
5 changed files with 7 additions and 57 deletions

View File

@@ -1,18 +0,0 @@
from collections import namedtuple
from jedi._compatibility import highest_pickle_protocol
def test_highest_pickle_protocol():
v = namedtuple('version', 'major, minor')
assert highest_pickle_protocol([v(2, 7), v(2, 7)]) == 2
assert highest_pickle_protocol([v(2, 7), v(3, 8)]) == 2
assert highest_pickle_protocol([v(2, 7), v(3, 5)]) == 2
assert highest_pickle_protocol([v(2, 7), v(3, 6)]) == 2
assert highest_pickle_protocol([v(3, 8), v(2, 7)]) == 2
assert highest_pickle_protocol([v(3, 8), v(3, 8)]) == 4
assert highest_pickle_protocol([v(3, 8), v(3, 5)]) == 4
assert highest_pickle_protocol([v(3, 8), v(3, 6)]) == 4
assert highest_pickle_protocol([v(3, 6), v(2, 7)]) == 2
assert highest_pickle_protocol([v(3, 6), v(3, 8)]) == 4
assert highest_pickle_protocol([v(3, 6), v(3, 5)]) == 4
assert highest_pickle_protocol([v(3, 6), v(3, 6)]) == 4