mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Removed some more 3.4 usages
This commit is contained in:
@@ -5,22 +5,14 @@ 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, 3)]) == 2
|
||||
assert highest_pickle_protocol([v(2, 7), v(3, 4)]) == 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, 3), v(2, 7)]) == 2
|
||||
assert highest_pickle_protocol([v(3, 3), v(3, 3)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 3), v(3, 4)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 3), v(3, 5)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 3), v(3, 6)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 4), v(2, 7)]) == 2
|
||||
assert highest_pickle_protocol([v(3, 4), v(3, 3)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 4), v(3, 4)]) == 4
|
||||
assert highest_pickle_protocol([v(3, 4), v(3, 5)]) == 4
|
||||
assert highest_pickle_protocol([v(3, 4), v(3, 6)]) == 4
|
||||
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, 3)]) == 3
|
||||
assert highest_pickle_protocol([v(3, 6), v(3, 4)]) == 4
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user