Export to GitHub

mock - issue #249

create_autospec causes error in python3.4


Posted on Apr 6, 2015 by Massive Bird

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.

Comment #1

Posted on Apr 7, 2015 by Helpful Monkey

This is fixed in the version of mock shipped with Python 3.4 (unittest.mock).

Comment #2

Posted on Apr 7, 2015 by Massive Bird

Thanks so much!

Status: New

Labels:
Type-Defect Priority-Medium