Skip to content

Commit 45e0b20

Browse files
author
hackermd
committed
Fix unit test case for python 2.7
1 parent 33bedfb commit 45e0b20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dicomweb_client/tests/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ def test_load_json_dataset_pn_vm1_empty(httpserver, client, cache_dir):
345345
},
346346
}
347347
dataset = load_json_dataset(dicom_json)
348-
assert dataset.ReferringPhysicianName == ''
348+
# This returns different results for Python2 (None) and Python3 ("")
349+
assert dataset.ReferringPhysicianName in (None, '')
349350

350351

351352
def test_load_json_dataset_pn_vm2_empty(httpserver, client, cache_dir):

0 commit comments

Comments
 (0)