Skip to content

Commit

Permalink
Remove some remaining py2 compat bits
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Sep 18, 2023
1 parent de03737 commit 542cc0c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions issues_geometry/tests/test_geo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@

@pytest.mark.parametrize('geometry_data', [None, AURAJOKIRANTA_GEOJSON, AURAJOKIRANTA_GEOJSON['geometry']])
def test_post_geometry(random_service, mf_api_client, geometry_data):
if sys.version_info[0] == 2 and mf_api_client.format != 'json':
pytest.xfail('unsupported')
from issues_geometry.models import IssueGeometry
post_data = {
'extensions': 'geometry',
Expand Down
3 changes: 0 additions & 3 deletions issues_hel/tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

from issues.sync.down import update_local_issue

if sys.version_info[0] == 2: # pragma: no cover
from codecs import open


@pytest.mark.django_db
def test_import_taskful_georeport():
Expand Down
3 changes: 0 additions & 3 deletions issues_media/tests/test_issue_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@


def test_post_media(mf_api_client, random_service):
if sys.version_info[0] == 2 and mf_api_client.format in ('xml', 'sjson'):
pytest.xfail('this test is somehow broken on Py2')

files = [
ContentFile(content=VERY_SMALL_JPEG, name="x%d.jpg" % x)
for x in range(3)
Expand Down

0 comments on commit 542cc0c

Please sign in to comment.