I am facing "An error occurred during the test sequence action: 'verify'. Cleaning up" error when i hit "molecule test"

Hi,

When i run a molecule test on my ansible roles i am facing the following error on all of them.

DEBUG: COMMAND
/bin/py.test --debug -p no:cacheprovider --connection=ansible --ansible-inventory=/tmp/molecule/devp/default/inventory/ansible_inventory.yml /var/roles/devp/molecule/default/tests/test_default.py -vvv

writing pytestdebug information to /var/roles/devp/molecule/default/pytestdebug.log
============================= test session starts ==============================
platform linux2 – Python 2.7.5, pytest-4.6.0, py-1.8.1, pluggy-0.13.1 – /usr/bin/python2
using: pytest-4.6.0 pylib-1.8.1
setuptools registered plugins:
testinfra-1.19.0 at /usr/lib/python2.7/site-packages/testinfra/plugin.py
rootdir: /var/roles/devp/molecule/default
plugins: testinfra-1.19.0
collected 0 items / 1 errors

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_default.py ____________________
tests/test_default.py:6: in
os.environ[‘MOLECULE_INVENTORY_FILE’]).get_hosts(‘all’)
/usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:152: in init
self.cli = ansible.cli.playbook.PlaybookCLI(None)
/usr/lib/python2.7/site-packages/ansible/cli/init.py:67: in init
raise ValueError(‘A non-empty list for args is required’)
E ValueError: A non-empty list for args is required
!!! Interrupted: 1 errors during collection !!!
=========================== 1 error in 0.50 seconds ============================
wrote pytestdebug information to /var/roles/devp/molecule/default/pytestdebug.log
An error occurred during the test sequence action: ‘verify’. Cleaning up.

Can anyone give some inputs on this.

After upgrading to testinfra-3.0.4 from testinfra 1.19.0 issue got resolved.