From 2a991c98740c7c954673f9b0c1ee916d4e5e7ac6 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Fri, 2 Oct 2020 16:24:28 +0200 Subject: [PATCH] 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 --- scripts/python/TerraSync/tests/test_virtual_path.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/python/TerraSync/tests/test_virtual_path.py b/scripts/python/TerraSync/tests/test_virtual_path.py index 72aca3429..444dc04a0 100644 --- a/scripts/python/TerraSync/tests/test_virtual_path.py +++ b/scripts/python/TerraSync/tests/test_virtual_path.py @@ -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()