Skip to content

Commit

Permalink
Fix python 2 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Magdalena Rother committed Jan 20, 2019
1 parent 06966bc commit 0e5d1c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/client/test_commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from io import StringIO
import sys

import mock
import pytest
Expand All @@ -7,6 +7,12 @@
from requests.exceptions import ConnectionError


if sys.version_info[0] < 3:
from StringIO import StringIO
else:
from io import StringIO


@pytest.mark.django_db
class TestSyncPerms:

Expand Down

0 comments on commit 0e5d1c1

Please sign in to comment.