repo2docker/tests/pipfile/requirements-txt/verify

14 wiersze
332 B
Plaintext
Czysty Zwykły widok Historia

2019-04-20 22:53:40 +00:00
#!/usr/bin/env python
import pypi_pkg_test
2019-04-20 22:53:40 +00:00
import there
try:
import numpy
except ImportError:
# We want an ImportError to be thrown for this test to pass
pass
else:
2019-06-17 22:38:06 +00:00
raise Exception(
"'numpy' shouldn't have been installed! It was listed in requirements.txt but not in the Pipfile that has precedence."
)