Fix theano tests with the latest version of theano
Fix theano tests with the latest version of theano

// edited by skirpichev

Signed-off-by: Sergey B Kirpichev <6c6368f8f4cbabf33ffd2abfd270a2fcf839188a@gmail.com>

skirpichev/omg,diofant/diofant