1
0
Fork 0

terrasync.py: fix a DeprecationWarning

Using or importing the ABCs from 'collections' instead of from
'collections.abc' is deprecated since Python 3.3, and in 3.9 it will
stop working.
This commit is contained in:
Florent Rougon 2020-10-01 19:41:04 +02:00
parent 8985626ad5
commit 7714abd56e

View file

@ -303,7 +303,7 @@ class TestVirtualPathSpecific(unittest.TestCase):
def test_isHashableType(self):
p = VirtualPath("/foo")
self.assertTrue(isinstance(p, collections.Hashable))
self.assertTrue(isinstance(p, collections.abc.Hashable))
def test_insideSet(self):
l1 = [ VirtualPath("/foo/bar"),
@ -354,7 +354,7 @@ class TestMutableVirtualPathSpecific(unittest.TestCase):
def test_isNotHashableType(self):
p = MutableVirtualPath("/foo")
self.assertFalse(isinstance(p, collections.Hashable))
self.assertFalse(isinstance(p, collections.abc.Hashable))
if __name__ == "__main__":