Skip to content

Instantly share code, notes, and snippets.

@spulec
Created August 15, 2013 15:34
Show Gist options
  • Save spulec/6241822 to your computer and use it in GitHub Desktop.
Save spulec/6241822 to your computer and use it in GitHub Desktop.
The values in the test look right in my pdb, but not when the test runs
- Have you accounted for any timing issues? Your pdb is probably running a second or two after the test assertions run.
- Could there be a unicode vs bytestring issues? It's possible that strings you type in your pdb are one thing while strings in your test files are another. This espcially applies if you use unicode_literals, since most pdb-like programs still use bytestrings as input.
- Could it be that in the pdb your code is running a function additional times and that function has side-effects?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment