test_no_unknown_initializer_types.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import os
3 import subprocess
4 import unittest
5 
6 
7 class TestUnknownInitializerTypes(unittest.TestCase):
9  output = None
10  if os.environ['ROS_PYTHON_VERSION'] == '2':
11  output = subprocess.check_output(
12  ["/usr/bin/env", "python", "-c", "'import pyexotica as exo ; initializers = exo.Setup.get_initializers()'"])
13  elif os.environ['ROS_PYTHON_VERSION'] == '3':
14  output = subprocess.check_output(
15  ["/usr/bin/env", "python3", "-c", "'import pyexotica as exo ; initializers = exo.Setup.get_initializers()'"])
16  else:
17  raise AssertionError("Unknown ROS_PYTHON_VERSION")
18 
19  if b"Skipping" in output:
20  raise AssertionError(output)
21 
22 
23 if __name__ == '__main__':
24  unittest.main()


exotica_python
Author(s):
autogenerated on Mon Feb 22 2021 03:33:27