Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 20, 2018
1 parent a7505d2 commit 8266e14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pyquickhelper/pycode/utils_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ def write_covlog(covs):

fLOG("[main_wrapper_tests] CHECK EXCEPTION -----------------")
err = res.get("err", "")
if len(err) > 0:
# Remove most of the Sphinx warnings (sphinx < 1.8)
lines = err.split("\n")
lines = [_ for _ in err if "is already registered, it will be overridden" not in _]
err = "\n".join(lines)
if len(err) > 0:
raise Exception(err)

Expand Down

0 comments on commit 8266e14

Please sign in to comment.