test_slapgrid: support virtualenv paths
When using virtualenv, the module paths are not simple list, but instances of importlib._bootstrap_external._NamespacePath. According to docs [1] module's __path__ does is not a list, but an iterator producing strings. Cast to a list to consume these iterators. [1] https://docs.python.org/3/reference/import.html?highlight=__path__#path__
Showing
Please register or sign in to comment