diff --git a/Changes b/Changes index 9893ecfdc..3a4680622 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,8 @@ Summary of important user-visible changes for BioPerl {{$NEXT}} * Add minimum dependency on base.pm v2.18. Fixes bug in some cases when using SUPER::new() [#307]. + * Fix test for BSML SAX by using lax parser XML::SAX::PurePerl since + the external DTD URL now 404s [#376]. 1.7.8 2021-02-02 23:02:18-06:00 America/Chicago * Bio::SeqIO::interpro has been moved to a separate repository to diff --git a/t/SeqIO/bsml_sax.t b/t/SeqIO/bsml_sax.t index f22d5bf1b..189727fea 100644 --- a/t/SeqIO/bsml_sax.t +++ b/t/SeqIO/bsml_sax.t @@ -9,6 +9,7 @@ BEGIN { test_begin(-tests => 15, -requires_modules => [qw(XML::SAX XML::SAX::Writer + XML::SAX::PurePerl XML::SAX::Base)]); use_ok('Bio::SeqIO'); @@ -16,6 +17,10 @@ BEGIN { my $verbose = test_debug(); +# Using lax parser XML::SAX::PurePerl due to external DTD error (404 for URL, +# invalid redeclaration of predefined entity) instead of others such as +# XML::LibXML::SAX. See GH#376. +local $XML::SAX::ParserPackage = 'XML::SAX::PurePerl'; my $str = Bio::SeqIO->new(-format => 'bsml_sax', -verbose => $verbose, -file => test_input_file('U83300.bsml'));