Skip to content

Commit

Permalink
Remove import of python 2 library
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Dec 6, 2023
1 parent a49f615 commit 3af5719
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions posttroll/tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@ def test_metadata(self):
def test_serialization(self):
"""Test json serialization."""
compare_file = "/message_metadata.dumps"
try:
import json
except ImportError:
import simplejson as json
compare_file += ".simplejson"
import json
metadata = copy.copy(SOME_METADATA)
metadata["timestamp"] = metadata["timestamp"].isoformat()
fp_ = open(DATADIR + compare_file)
Expand Down

0 comments on commit 3af5719

Please sign in to comment.