Merge pull request #1845 from geofft/pyasn1-eoc

Fix comparison between pyasn1 objects introduced in #1843