Skip to content

Commit

Permalink
Fixed tests for pyhton@3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Oct 8, 2019
1 parent c7d2a44 commit f42c2d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,10 @@ def test_resources_have_public_backreference_to_package():

# Save to json

@pytest.mark.skipif(sys.version_info < (3, 6, 0), reason='Not supported in Python@3.5')
def test_save_as_json(json_tmpfile):
package = Package({})
package.save(json_tmpfile.name)
assert json.load(json_tmpfile) == {
assert json.loads(json_tmpfile.read().decode('utf-8')) == {
'profile': 'data-package',
}

Expand Down

0 comments on commit f42c2d1

Please sign in to comment.