Skip to content

Commit

Permalink
error on warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epsy committed Sep 24, 2019
1 parent 8f23611 commit 8afdd94
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sigtools/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

import sys
import warnings


__all__ = []


if sys.argv and "test" in sys.argv[0]:
warnings.filterwarnings("default")
warnings.filterwarnings("error", module="clize")
warnings.filterwarnings("error", module=".*/clize/")

0 comments on commit 8afdd94

Please sign in to comment.