Comment #2 on issue 3282 by smi...@gmail.com: failure in quantum
circuitutils in 3.2
http://code.google.com/p/sympy/issues/detail?id=3282
I commented in pull request 959:
Because of changes to how random integers are produced in Py 3.2, tests of
random behavior may not work across all versions of python regardless of
your seed value. So these tests are now causing problems [...] -- they pass
under 2.5 and 2.7 but fail under 3.2. The 4 possible solutions are:
1) remove the tests,
2) make your own randint function: randint = lambda i, j: i +
int(random()*(j-i+1)); this will not be as good as the py 3.2 version but
it will probably be good enough and will be cross-version compatible since
random--but not randint--is cross-version compatible,
3) patch random in compatibility so it works across versions (which was the
rejected attempt I made in #1310);
4) XFAIL the test -- it will pass when our least supported version of
python is 3.2.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.