Skip to content

Commit

Permalink
test: remove python 2.4 specific behaviour in test
Browse files Browse the repository at this point in the history
Remove some python 2.4 specific code as we don't support python 2.4
anymore.
  • Loading branch information
aucampia committed Jul 20, 2022
1 parent 93963ee commit 6d20ab4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/test_parsers/test_swap_n3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sys

import pytest

Expand Down Expand Up @@ -125,13 +124,7 @@ def get_cases():
else:
e.skip = False
# e.skip = True
if sys.version_info[:2] == (2, 4):
import pickle

gjt = pickle.dumps(generictest)
gt = pickle.loads(gjt)
else:
gt = deepcopy(generictest)
gt = deepcopy(generictest)
gt.__doc__ = tfile
yield gt, e

Expand Down

0 comments on commit 6d20ab4

Please sign in to comment.