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:
parent
8985626ad5
commit
7714abd56e
1 changed files with 2 additions and 2 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Reference in a new issue