Permalink
Browse files

Hide parser wanings in test_GenBank.py

TODO: Actually test the appropriate warnings are raised
  • Loading branch information...
peterjc committed Jan 8, 2013
1 parent bca1c24 commit 7469aa80e230042c3b8d8779ed0b11e937a3c2e8
Showing with 6 additions and 0 deletions.
  1. +6 −0 Tests/test_GenBank.py
View
@@ -4,11 +4,17 @@
# standard library
import os
import cStringIO
+import warnings
+
+from Bio import BiopythonParserWarning
# GenBank stuff to test
from Bio import GenBank
from Bio.GenBank import utils
+#TODO - Test we get the warnings we expect on the bad input files
+warnings.simplefilter('ignore', BiopythonParserWarning)
+
gb_file_dir = os.path.join(os.getcwd(), 'GenBank')
test_files = ['noref.gb', 'cor6_6.gb', 'iro.gb', 'pri1.gb', 'arab1.gb',

0 comments on commit 7469aa8

Please sign in to comment.