Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
45871732
Commit
45871732
authored
Sep 05, 2019
by
Paul McCarthy
🚵
Browse files
TEST: Python compatibility - choices no exist in 3.5
parent
ece4eb12
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_dicom.py
View file @
45871732
...
...
@@ -145,8 +145,8 @@ def test_sersiesCRC():
for
series
,
expect
in
tests
:
series
=
dict
(
series
)
if
expect
is
RANDOM
:
expect
=
''
.
join
(
random
.
choice
s
(
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment