Commit 45871732 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Python compatibility - choices no exist in 3.5

parent ece4eb12
...@@ -145,8 +145,8 @@ def test_sersiesCRC(): ...@@ -145,8 +145,8 @@ def test_sersiesCRC():
for series, expect in tests: for series, expect in tests:
series = dict(series) series = dict(series)
if expect is RANDOM: if expect is RANDOM:
expect = ''.join(random.choices( expect = ''.join([random.choice(string.ascii_letters + string.digits)
string.ascii_letters + string.digits, k=30)) for i in range(30)])
series['SeriesInstanceUID'] = expect series['SeriesInstanceUID'] = expect
expect = str(binascii.crc32(expect.encode())) expect = str(binascii.crc32(expect.encode()))
echo = series.get('EchoNumber', 0) echo = series.get('EchoNumber', 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment