jsatt / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

MagicMock.__truediv__ doesn't work on python3 #247

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. MagicMock.__truediv__ should work on python3
2. MagicMock.__div__ should fail on python3
3. See pydoc2 SPECIALMETHODS vs pydoc3 SPECIALMETHODS

As briefly stated above, MagicMock incorrectly marks truediv as python 2-only 
feature. The div method should move to python2-only section, truediv is 
universal.

Original issue reported on code.google.com by zkryni...@gmail.com on 2 Mar 2015 at 12:45