Unverified Commit a8eba917 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #1170 from jcarpent/devel

Fix Python issues where access to __version__ is reintroduced
parents b12d918a 22870879
#
# Copyright (c) 2015-2019 CNRS INRIA
# Copyright (c) 2015-2020 CNRS INRIA
#
import numpy
from .libpinocchio_pywrap import *
from .libpinocchio_pywrap import __version__, __raw_version__
from . import utils
from .explog import exp, log
......
......@@ -23,6 +23,7 @@ SET(${PROJECT_NAME}_PYTHON_TESTS
rpy
utils
serialization
version
)
IF(HPP_FCL_FOUND)
......
from __future__ import print_function
import unittest
import pinocchio as pin
from test_case import PinocchioTestCase as TestCase
class TestVersion(TestCase):
def test_version(self):
print("version:",pin.__version__)
print("raw_version:",pin.__raw_version__)
self.assertTrue(pin.__version__)
self.assertTrue(pin.__raw_version__)
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment