Permalink
Browse files

Hide scary but harmless warnings in BioSQL tests

  • Loading branch information...
1 parent 483e7b7 commit 6745ce8a9d25bdb4c48852aaa31df9936b7a116d @peterjc peterjc committed Jan 8, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 Tests/common_BioSQL.py
View
@@ -8,6 +8,12 @@
import unittest
from StringIO import StringIO
+# Hide annoying warnings from things like bonds in GenBank features,
+# or PostgreSQL schema rules. TODO - test these warnings are raised!
+import warnings
+from Bio import BiopythonWarning
+warnings.simplefilter('ignore', BiopythonWarning)
+
# local stuff
from Bio import MissingExternalDependencyError
from Bio.Seq import Seq, MutableSeq

0 comments on commit 6745ce8

Please sign in to comment.