Skip to content
Snippets Groups Projects
Commit ca0e3af2 authored by Tiago Grego's avatar Tiago Grego
Browse files

tests update to deprecate legacy GFF constructor

parent eb40c9cb
No related branches found
No related tags found
2 merge requests!79ensembl Utils::IO into ensembl-io,!79ensembl Utils::IO into ensembl-io
...@@ -182,17 +182,14 @@ OUT ...@@ -182,17 +182,14 @@ OUT
} }
{ {
# Deprecated constructor call.
my $fh = IO::String->new(); my $fh = IO::String->new();
my $ontology_adaptor = {}; my $ontology_adaptor = {};
bless($ontology_adaptor, 'Bio::EnsEMBL::DBSQL::OntologyTermAdaptor'); bless($ontology_adaptor, 'Bio::EnsEMBL::DBSQL::OntologyTermAdaptor');
my $warning = warning { my $ser = Bio::EnsEMBL::Utils::IO::GFFSerializer->new($ontology_adaptor, $fh);
my $ser = Bio::EnsEMBL::Utils::IO::GFFSerializer->new($ontology_adaptor, $fh) }; ok($ser, "Legacy constructor backwards compatibility. Here to remind of deprecated message.");
like( $warning,
qr/GFF format does not require an instance of Bio::EnsEMBL::DBSQL::OntologyTermAdaptor anymore./,
"Legacy constructor throws warning",
) or diag 'Got warning: ', explain($warning);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment