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 19, 2022
1 parent fda98ec commit ec9bfa5
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 ec9bfa5

Please sign in to comment.