When something happens on some test runs, and doesn't happen on other
test runs, the only thing that changes across Python interpreter runs is
the ordering of dictionaries and sets (interesting side note, it's been
announced yesterday/today that they are changing this in Python 3.6).
The steps you were taking to make your bug occur correspond with what
I've seen in past issues.
Try setting PYTHONHASHSEED to a fixed integer number, and get the test
suite to fail with that number. Then you will see the same ordering
failure in each case, and you can then use pdb and logging to more
specifically isolate your issue.
On 09/09/2016 05:02 PM, Dominik George wrote:
Hi,
thanks for your reply!
make sure you set the environment variable PYTHONHASHSEED=random, then
run your tests repeatedly. This variable produces a random hash seed
for dictionaries and will smoke out dictionary-ordering based bugs more
clearly so that you can localize the source of it. If this
reproduces
the issue in Py2K you'll know you have a dict ordering bug rather than
something to do with Py3K.
Setting that indeed reproduces the bug in Python 2.7.
I do, however, not understand what this has to to with dictionary
ordering, because I am not comparing whole dictionaries but only single
entries, accessed by their key. Can you elaborate a bit more what you
think the issue is?
Cheers,
Nik
--
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sqlalchemy+unsubscr...@googlegroups.com
<mailto:sqlalchemy+unsubscr...@googlegroups.com>.
To post to this group, send email to sqlalchemy@googlegroups.com
<mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.