jsatt / mock

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

create_autospec causes error in python3.4 #249

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. mock.create_autospec(someClass)

What is the expected output? What do you see instead?
AttributeError: 'method-wrapper' object has no attribute '__module__'

What version of the product are you using? On what operating system?
10.1
Ubuntu
python3.4

This works fine with python2.7

Please provide any additional information below.

Original issue reported on code.google.com by Louise.S...@gmail.com on 6 Apr 2015 at 10:08

GoogleCodeExporter commented 8 years ago
This is fixed in the version of mock shipped with Python 3.4 (unittest.mock).

Original comment by fuzzyman on 7 Apr 2015 at 9:24

GoogleCodeExporter commented 8 years ago
Thanks so much!

Original comment by Louise.S...@gmail.com on 7 Apr 2015 at 5:34