sympy/sympy — pull request #815 by smichr (2011-12-04 14:47:05+00:00)
Title: 2876: factor no longer pulls negatives out from radicals

Previoiusly, factor(sqrt(-x)) gave I*sqrt(x) which is only true
if x >= 0.