added failure error code to tests
This commit is contained in:
62
.gitignore
vendored
Normal file
62
.gitignore
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# virtualenv
|
||||
py-ve*
|
||||
|
||||
#cloud9
|
||||
.c9
|
||||
@@ -2254,6 +2254,7 @@ def pulpTestAll():
|
||||
YAPOSIB
|
||||
]
|
||||
|
||||
failed = False
|
||||
for s in solvers:
|
||||
if s().available():
|
||||
try:
|
||||
@@ -2262,8 +2263,11 @@ def pulpTestAll():
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print("* Solver", s, "failed.")
|
||||
failed = True
|
||||
else:
|
||||
print("Solver %s unavailable" % s)
|
||||
if failed:
|
||||
raise PulpError("Tests Failed")
|
||||
|
||||
def pulpDoctest():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user