[Biopython-dev] [Bug 2437] comparing alphabet references causes assert to fail when it should pass

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sat Mar 8 20:25:06 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2437





------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk  2008-03-08 15:25 EST -------
Changing Bio/Translate.py line 14+ and 36+ from this:

        assert seq.alphabet == self.table.nucleotide_alphabet, \
        ...

to this:

        #Allow different instances of the same class to be used:
        assert seq.alphabet.__class__ == \
               self.table.nucleotide_alphabet.__class__, \
        ...

seems to resolve the original bug report.  I'd like to check this doesn't
affect any of the unit tests under Linux - Windows looks OK.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list