Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pchtsp committed Jul 12, 2024
1 parent 3ae0ff9 commit 96bfffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pulp/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def listSolvers(onlyAvailable=False):
"""
result = []
for s in _all_solvers:
solver = s()
solver = s(msg=False)
if (not onlyAvailable) or solver.available():
result.append(solver.name)
del solver
Expand Down
4 changes: 2 additions & 2 deletions pulp/apis/copt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,10 @@ def __init__(
else:
# linux and mac should have /dev/null
devnull = open("/dev/null", "w")
os.dup2(devnull.fileno(), 1)
os.dup2(devnull.fileno(), sys.stdout.fileno())
self.coptenv = coptpy.Envr()
self.coptmdl = self.coptenv.createModel()
os.dup2(oldstdout_fno, 1)
os.dup2(oldstdout_fno, sys.stdout.fileno())
else:
self.coptenv = coptpy.Envr()
self.coptmdl = self.coptenv.createModel()
Expand Down

0 comments on commit 96bfffa

Please sign in to comment.