Skip to content

Console Output

+ python2 /usr/local/bin/py.test -v --junitxml py2.xml tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.17, pytest-4.6.11, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python2
cachedir: .pytest_cache
rootdir: /var/lib/jenkins1/ws/OMPython_Ticket6084
collecting ... collected 19 items / 1 errors / 18 selected

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_ModelicaSystem.py _________________
/usr/local/lib/python2.7/dist-packages/_pytest/python.py:507: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/local/lib/python2.7/dist-packages/py/_path/local.py:704: in pyimport
    __import__(modname)
/usr/local/lib/python2.7/dist-packages/_pytest/assertion/rewrite.py:304: in load_module
    exec(co, mod.__dict__)
tests/test_ModelicaSystem.py:1: in <module>
    import OMPython
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
----- generated xml file: /var/lib/jenkins1/ws/OMPython_Ticket6084/py2.xml -----
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.34 seconds ============================