Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
314fbaad
Commit
314fbaad
authored
Aug 25, 2020
by
payno
Browse files
remove some warnings (use collections.abc.Hashable instead of collections.Hashable)
parent
bf2c3650
Changes
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/test/test_edfscan.py
View file @
314fbaad
...
@@ -58,9 +58,9 @@ class TestTomoBaseHashable(unittest.TestCase):
...
@@ -58,9 +58,9 @@ class TestTomoBaseHashable(unittest.TestCase):
def
test_is_hashable
(
self
):
def
test_is_hashable
(
self
):
tomo_base
=
TomoScanBase
(
scan
=
self
.
_folder
,
type_
=
'toto'
)
tomo_base
=
TomoScanBase
(
scan
=
self
.
_folder
,
type_
=
'toto'
)
self
.
assertTrue
(
isinstance
(
tomo_base
,
collections
.
Hashable
))
self
.
assertTrue
(
isinstance
(
tomo_base
,
collections
.
abc
.
Hashable
))
tomo_scan
=
EDFTomoScan
(
self
.
_folder
)
tomo_scan
=
EDFTomoScan
(
self
.
_folder
)
self
.
assertTrue
(
isinstance
(
tomo_scan
,
collections
.
Hashable
))
self
.
assertTrue
(
isinstance
(
tomo_scan
,
collections
.
abc
.
Hashable
))
class
TestScanFactory
(
unittest
.
TestCase
):
class
TestScanFactory
(
unittest
.
TestCase
):
...
...
Write
Preview
Markdown
is supported
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