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 non-determinism in tests.py #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix non-determinism in tests.py #171

wants to merge 1 commit into from

Conversation

sharmaeklavya2
Copy link
Contributor

TestAPNs.testFrame can fail if the order of key-value pairs in frame.get_frame() is different from that in f1 or f2. Fix that by handling all possible orderings.

I don't know why this problem didn't come up till now. But I got hit by it when I tried to run tests on Python 3.4. Here's the failure - https://travis-ci.org/sharmaeklavya2/PyAPNs/jobs/143044041.

TestAPNs.testFrame can fail if the order of key-value pairs in
frame.get_frame() is different from that in f1 or f2.
Fix that by handling all possible orderings.
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.

1 participant