1
0
Fork 0

terrasync.py: test_virtual_path.py can't be run directly

Remove the 'if __name__ == "__main__": unittest.main()'. Indeed, the
module can't be run this way due to its imports. Tests from this module
can be run with:

  cd scripts/python/TerraSync
  python3 -m unittest tests.test_virtual_path
This commit is contained in:
Florent Rougon 2020-10-02 16:24:28 +02:00
parent 13f943b4a1
commit 2a991c9874

View file

@ -355,7 +355,3 @@ class TestMutableVirtualPathSpecific(unittest.TestCase):
def test_isNotHashableType(self):
p = MutableVirtualPath("/foo")
self.assertFalse(isinstance(p, collections.abc.Hashable))
if __name__ == "__main__":
unittest.main()