Fix check of sys.argv length. (#30)

We needed to call len(sys.argv)

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
Chris Lalancette 2019-10-22 18:59:22 -04:00 committed by GitHub
parent 4f825a0a4c
commit 748357e691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ NAME = "test_kdl_parser"
class TestKdlParser(unittest.TestCase):
def runTest(self):
filename = None
if (sys.argv > 1):
if (len(sys.argv) > 1):
filename = sys.argv[1]
else:
self.fail("Expected filename!")