Fix doctest failures in _mr_safe_helper (#1789)
Fix doctest failures in _mr_safe_helper (#1789)

* Use integer division.
* Normalise return value
* Fix a typo
* Break up some lines wih multiple statements

kumarkrishna/sympy,drufat/sympy,kaushik94/sympy,maniteja123/sympy,farhaanbukhsh/sympy,wanglongqi/sympy,pernici/sympy,MridulS/sympy,cccfran/sympy,garvitr/sympy,kaichogami/sympy,wyom/sympy,bukzor/sympy,skidzo/sympy,jbbskinny/sympy,shipci/sympy,sahilshekhawat/sympy,cswiercz/sympy,Sumith1896/sympy,sampadsaha5/sympy,Shaswat27/sympy,Curious72/sympy,mattpap/sympy-polys,moble/sympy,jamesblunt/sympy,shikil/sympy,lidavidm/sympy,abhiii5459/sympy,hrashk/sympy,atreyv/sympy,srjoglekar246/sympy,hrashk/sympy,wyom/sympy,jbbskinny/sympy,fperez/sympy,yukoba/sympy,sahmed95/sympy,Designist/sympy,Gadal/sympy,sampadsaha5/sympy,sahmed95/sympy,atsao72/sympy,grevutiu-gabriel/sympy,atsao72/sympy,Mitchkoens/sympy,AunShiLord/sympy,aktech/sympy,mcdaniel67/sympy,lindsayad/sympy,Davidjohnwilson/sympy,VaibhavAgarwalVA/sympy,farhaanbukhsh/sympy,wanglongqi/sympy,Mitchkoens/sympy,minrk/sympy,jamesblunt/sympy,postvakje/sympy,yashsharan/sympy,Titan-C/sympy,shipci/sympy,tovrstra/sympy,lindsayad/sympy,bukzor/sympy,jbbskinny/sympy,cswiercz/sympy,mafiya69/sympy,oliverlee/sympy,Sumith1896/sympy,rahuldan/sympy,AkademieOlympia/sympy,beni55/sympy,MechCoder/sympy,oliverlee/sympy,postvakje/sympy,AunShiLord/sympy,wanglongqi/sympy,cccfran/sympy,grevutiu-gabriel/sympy,beni55/sympy,sampadsaha5/sympy,jerli/sympy,cccfran/sympy,asm666/sympy,kmacinnis/sympy,madan96/sympy,flacjacket/sympy,kevalds51/sympy,debugger22/sympy,atsao72/sympy,emon10005/sympy,saurabhjn76/sympy,Shaswat27/sympy,vipulroxx/sympy,wyom/sympy,kmacinnis/sympy,MechCoder/sympy,souravsingh/sympy,kaichogami/sympy,AkademieOlympia/sympy,jerli/sympy,shikil/sympy,ga7g08/sympy,kumarkrishna/sympy,lindsayad/sympy,lidavidm/sympy,grevutiu-gabriel/sympy,chaffra/sympy,bukzor/sympy,madan96/sympy,yashsharan/sympy,madan96/sympy,sahmed95/sympy,ChristinaZografou/sympy,pbrady/sympy,hargup/sympy,Arafatk/sympy,meghana1995/sympy,vipulroxx/sympy,liangjiaxing/sympy,farhaanbukhsh/sympy,ahhda/sympy,shikil/sympy,emon10005/sympy,Arafatk/sympy,ahhda/sympy,Shaswat27/sympy,toolforger/sympy,jamesblunt/sympy,mcdaniel67/sympy,moble/sympy,sahilshekhawat/sympy,dqnykamp/sympy,kevalds51/sympy,yashsharan/sympy,Vishluck/sympy,pbrady/sympy,maniteja123/sympy,hrashk/sympy,kaushik94/sympy,aktech/sympy,AkademieOlympia/sympy,Titan-C/sympy,Arafatk/sympy,skirpichev/omg,souravsingh/sympy,Sumith1896/sympy,atreyv/sympy,abhiii5459/sympy,yukoba/sympy,hargup/sympy,chaffra/sympy,minrk/sympy,jaimahajan1997/sympy,amitjamadagni/sympy,pbrady/sympy,asm666/sympy,pandeyadarsh/sympy,jerli/sympy,ChristinaZografou/sympy,cswiercz/sympy,Titan-C/sympy,abloomston/sympy,dqnykamp/sympy,drufat/sympy,vipulroxx/sympy,MridulS/sympy,abloomston/sympy,mcdaniel67/sympy,shipci/sympy,diofant/diofant,Mitchkoens/sympy,emon10005/sympy,oliverlee/sympy,postvakje/sympy,pandeyadarsh/sympy,iamutkarshtiwari/sympy,Designist/sympy,Davidjohnwilson/sympy,toolforger/sympy,Vishluck/sympy,kevalds51/sympy,Curious72/sympy,sunny94/temp,VaibhavAgarwalVA/sympy,lidavidm/sympy,atreyv/sympy,Davidjohnwilson/sympy,rahuldan/sympy,skidzo/sympy,debugger22/sympy,iamutkarshtiwari/sympy,garvitr/sympy,skidzo/sympy,moble/sympy,aktech/sympy,kaushik94/sympy,Designist/sympy,ahhda/sympy,dqnykamp/sympy,kumarkrishna/sympy,jaimahajan1997/sympy,sunny94/temp,abloomston/sympy,MridulS/sympy,MechCoder/sympy,Gadal/sympy,Gadal/sympy,saurabhjn76/sympy,sunny94/temp,sahilshekhawat/sympy,ga7g08/sympy,liangjiaxing/sympy,abhiii5459/sympy,saurabhjn76/sympy,ga7g08/sympy,beni55/sympy,jaimahajan1997/sympy,asm666/sympy,liangjiaxing/sympy,pandeyadarsh/sympy,Curious72/sympy,VaibhavAgarwalVA/sympy,iamutkarshtiwari/sympy,kmacinnis/sympy,Vishluck/sympy,debugger22/sympy,hargup/sympy,rahuldan/sympy,maniteja123/sympy,mafiya69/sympy,ChristinaZografou/sympy,amitjamadagni/sympy,AunShiLord/sympy,kaichogami/sympy,garvitr/sympy,yukoba/sympy,drufat/sympy,chaffra/sympy,mafiya69/sympy,toolforger/sympy,meghana1995/sympy,meghana1995/sympy,souravsingh/sympy