Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OID inequality comparison #125

Merged
merged 1 commit into from
Jul 26, 2017

Conversation

cipherboy
Copy link
Contributor

Due to an extraneous 'or' branch, OID inequality
comparison would return the results of an equality
comparison.

Copy link
Member

@DirectXMan12 DirectXMan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small test comment, otherwise fine.

krb5_other = gb.OID.from_int_seq(TEST_OIDS['KRB5']['string'])
spnego = gb.OID.from_int_seq(TEST_OIDS['SPNEGO']['string'])

a = krb5 == krb5_other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this (krb5 == krb5_other).should_be(True) so that we get nice error messages with should_be

@DirectXMan12
Copy link
Member

Good catch.

/me is embarrased

Due to an extraneous 'or' branch, OID inequality
comparison would return the results of an equality
comparison.

Signed-off-by: Alexander Scheel <ascheel@redhat.com>
@cipherboy
Copy link
Contributor Author

Thank you! Updated :)

Copy link
Member

@frozencemetery frozencemetery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@DirectXMan12 DirectXMan12 merged commit 04f347d into pythongssapi:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants