[med-svn] [Git][med-team/python-bcbio-gff][master] remove six from test
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Thu Feb 20 22:46:30 GMT 2025
Alexandre Detiste pushed to branch master at Debian Med / python-bcbio-gff
Commits:
e4cbc23b by Alexandre Detiste at 2025-02-20T23:46:23+01:00
remove six from test
- - - - -
1 changed file:
- debian/tests/test_GFFSeqIOFeatureAdder.py
Changes:
=====================================
debian/tests/test_GFFSeqIOFeatureAdder.py
=====================================
@@ -5,8 +5,7 @@ import os
import unittest
import pprint
-import six
-from six import StringIO
+from io import StringIO
from Bio import SeqIO
from BCBio import GFF
@@ -146,9 +145,6 @@ class GFF3Test(unittest.TestCase):
assert pc_map == gff_examiner.parent_child_map(handle)
with open(self._test_gff_file, "rb") as handle:
- if six.PY2:
- assert pc_map == gff_examiner.parent_child_map(handle)
- else:
try:
gff_examiner.parent_child_map(handle)
except TypeError as e:
@@ -333,7 +329,7 @@ class GFF3Test(unittest.TestCase):
"""Handle GFF3 files with keys and no values.
"""
tfile = os.path.join(self._test_dir, "glimmer_nokeyval.gff3")
- rec = six.next(GFF.parse(tfile))
+ rec = next(GFF.parse(tfile))
f1, f2 = rec.features
assert f1.qualifiers['ID'] == ['GL0000006']
assert len(f1.sub_features) == 2
@@ -354,7 +350,7 @@ class GFF3Test(unittest.TestCase):
"""
fname = os.path.join(self._test_dir, "trans_splicing.gff3")
with open(fname) as in_handle:
- rec = six.next(GFF.parse(in_handle))
+ rec = next(GFF.parse(in_handle))
assert len(rec.features) == 2
assert rec.features[0].id == "gene83"
assert len(rec.features[0].sub_features) == 2
View it on GitLab: https://salsa.debian.org/med-team/python-bcbio-gff/-/commit/e4cbc23bf80dd741b1e936c94e02e692d32dad56
--
View it on GitLab: https://salsa.debian.org/med-team/python-bcbio-gff/-/commit/e4cbc23bf80dd741b1e936c94e02e692d32dad56
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250220/b0bd750d/attachment-0001.htm>
More information about the debian-med-commit
mailing list