Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Disable this bit of testing due to cross platform warning issues.

  • Loading branch information...
commit 152202d900024bf97fb0072d25d75e5c4d5c86ec 1 parent 615a625
@peterjc peterjc authored
Showing with 5 additions and 12 deletions.
  1. +0 −4 Tests/output/test_SeqIO
  2. +5 −8 Tests/test_SeqIO.py
View
4 Tests/output/test_SeqIO
@@ -2190,7 +2190,6 @@ Testing reading embl format file EMBL/epo_prt_selection.embl
Checking can write/read as 'fastq-solexa' format
Failed: No suitable quality scores found in letter_annotations of SeqRecord (id=CQ797900.1).
Checking can write/read as 'genbank' format
-BiopythonWarning - Annotation 'flavin-adenine-dinucleotide-dependent-d-erythronate-4-phosphate-dehydrogena' too long for '' line
Checking can write/read as 'imgt' format
Checking can write/read as 'phd' format
Failed: No suitable quality scores found in letter_annotations of SeqRecord (id=CQ797900.1).
@@ -3030,9 +3029,7 @@ Testing reading phd format file Phd/phd1
Checking can write/read as 'embl' format
Checking can write/read as 'fastq' format
Checking can write/read as 'fastq-illumina' format
-BiopythonWarning - Data loss - max PHRED quality 62 in Illumina FASTQ
Checking can write/read as 'fastq-solexa' format
-BiopythonWarning - Data loss - max Solexa quality 62 in Solexa FASTQ
Checking can write/read as 'genbank' format
Failed: Locus identifier '425_7_(71-A03-19).b.ab1' is too long
Checking can write/read as 'imgt' format
@@ -3180,7 +3177,6 @@ Testing reading ace format file Ace/seq.cap.ace
Checking can write/read as 'phylip-relaxed' format
Checking can write/read as 'embl' format
Checking can write/read as 'fastq' format
-BiopythonWarning - Data loss - max PHRED quality 93 in Sanger FASTQ
Checking can write/read as 'fastq-illumina' format
Checking can write/read as 'fastq-solexa' format
Checking can write/read as 'genbank' format
View
13 Tests/test_SeqIO.py
@@ -22,14 +22,11 @@
import warnings
-
-def send_warnings_to_stdout(message, category, filename, lineno,
- file=None, line=None):
- #TODO - Have Biopython DataLossWarning?
- if category in [BiopythonWarning]:
- print "%s - %s" % (category.__name__, message)
-warnings.showwarning = send_warnings_to_stdout
-
+# TODO - Convert this to using unittest, and check desired warnings
+# are issued. Used to do that by capturing warnings to stdout and
+# verifying via the print-and-compare check. However, there was some
+# frustrating cross-platform inconsistency I couldn't resolve.
+warnings.simplefilter('ignore', BiopythonWarning)
protein_alphas = [Alphabet.generic_protein]
dna_alphas = [Alphabet.generic_dna]
Please sign in to comment.
Something went wrong with that request. Please try again.