From 4587173236de62a4e53240258c55ec932cdf5569 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 5 Sep 2019 18:27:27 +0100 Subject: [PATCH] TEST: Python compatibility - choices no exist in 3.5 --- tests/test_dicom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dicom.py b/tests/test_dicom.py index 5354e86e2..e3b444c3c 100644 --- a/tests/test_dicom.py +++ b/tests/test_dicom.py @@ -145,8 +145,8 @@ def test_sersiesCRC(): for series, expect in tests: series = dict(series) if expect is RANDOM: - expect = ''.join(random.choices( - string.ascii_letters + string.digits, k=30)) + expect = ''.join([random.choice(string.ascii_letters + string.digits) + for i in range(30)]) series['SeriesInstanceUID'] = expect expect = str(binascii.crc32(expect.encode())) echo = series.get('EchoNumber', 0) -- GitLab