This looks like a typo.

Please test your code!  See this:
https://github.com/sympy/sympy/wiki/Development-workflow#wiki-be-sure-that-all-tests-of-sympy-pass

Sometimes, it's overkill to run the whole test suite.  But you should run locally at least modified test files!