Skip to content

Commit

Permalink
Fix unit test case for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermd committed Nov 28, 2018
1 parent 33bedfb commit 45e0b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dicomweb_client/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def test_load_json_dataset_pn_vm1_empty(httpserver, client, cache_dir):
},
}
dataset = load_json_dataset(dicom_json)
assert dataset.ReferringPhysicianName == ''
# This returns different results for Python2 (None) and Python3 ("")
assert dataset.ReferringPhysicianName in (None, '')


def test_load_json_dataset_pn_vm2_empty(httpserver, client, cache_dir):
Expand Down

0 comments on commit 45e0b20

Please sign in to comment.