Package: python-mock
Version: 1.0.1-2
Severity: serious
Tags: sid jessie
User: debian-pyt...@lists.debian.org
Usertags: python3.4

the tests fail with python3.4:

======================================================================
ERROR: test_create_autopsec (tests.testcallable.TestCallable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testcallable.py", line 143, in
test_create_autopsec
    mock = create_autospec(X)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_create_autospec_instance (tests.testcallable.TestCallable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testcallable.py", line 152, in
test_create_autospec_instance
    mock = create_autospec(SomeClass, instance=True)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_attributes (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 451, in
test_attributes
    sub_mock = create_autospec(Sub)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_functions_with_self_in_odd_place
(tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 832, in
test_autospec_functions_with_self_in_odd_place
    a = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_property (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 843, in
test_autospec_property
    foo = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_reset_mock (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 363, in
test_autospec_reset_mock
    m = create_autospec(int)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_slots (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 858, in
test_autospec_slots
    foo = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_basic (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 345, in
test_basic
    mock = create_autospec(spec)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_builtin_functions_types (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 467, in
test_builtin_functions_types
    mock = create_autospec(BuiltinSubclass)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_builtins (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 667, in
test_builtins
    create_autospec(int)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_class_with_no_init (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 759, in
test_class_with_no_init
    create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_create_autospec_keyword_arguments 
(tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 400, in
test_create_autospec_keyword_arguments
    m = create_autospec(Foo, a='3')
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_create_autospec_none (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 819, in
test_create_autospec_none
    mock = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_create_autospec_return_value (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 358, in
test_create_autospec_return_value
    mock = create_autospec(Foo, return_value='foo')
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_descriptors (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 550, in
test_descriptors
    mock = create_autospec(spec)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_inherit (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 646, in
test_inherit
    mock = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_magic_methods (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 512, in
test_magic_methods
    mock = create_autospec(BuiltinSubclass)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_method_calls (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 490, in
test_method_calls
    mock = create_autospec(Sub)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_recursive (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 588, in
test_recursive
    mock = create_autospec(A)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_signature_class (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 728, in
test_signature_class
    mock = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_signature_noncallable (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 803, in
test_signature_noncallable
    mock = create_autospec(NonCallable)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_skip_attributeerrors (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 713, in
test_skip_attributeerrors
    s = create_autospec(RaiserClass)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_spec_as_list (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 432, in
test_spec_as_list
    mock = create_autospec([])
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_spec_inheritance_for_classes (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 611, in
test_spec_inheritance_for_classes
    class_mock = create_autospec(Foo)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_spec_set (tests.testhelpers.SpecSignatureTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testhelpers.py", line 527, in
test_spec_set
    mock = create_autospec(spec, spec_set=True)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_autospec (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 936, in
test_autospec
    mock = test()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1193, in patched
    arg = patching.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_inherits (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 1000, in
test_autospec_inherits
    mock = patcher.start()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1396, in start
    result = self.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_name (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 1010, in
test_autospec_name
    mock = patcher.start()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1396, in start
    result = self.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_autospec_with_object (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 989, in
test_autospec_with_object
    mock = patcher.start()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1396, in start
    result = self.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2200, in create_autospec
    _name='()', _parent=mock)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'method-wrapper' object has no attribute '__module__'

======================================================================
ERROR: test_mock_calls_with_patch (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 1617, in
test_mock_calls_with_patch
    m = p.start()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1396, in start
    result = self.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_patch_nested_autospec_repr (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 1607, in
test_patch_nested_autospec_repr
    repr(m.SomeClass.wibble()))
  File "/build/buildd/python-mock-1.0.1/mock.py", line 681, in __getattr__
    result.parent, result.name
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

======================================================================
ERROR: test_patch_with_spec_mock_repr (tests.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python-mock-1.0.1/tests/testpatch.py", line 1590, in
test_patch_with_spec_mock_repr
    m = p.start()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1396, in start
    result = self.__enter__()
  File "/build/buildd/python-mock-1.0.1/mock.py", line 1349, in __enter__
    _name=self.attribute, **kwargs)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 2193, in create_autospec
    _check_signature(spec, mock, is_type, instance)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 213, in _check_signature
    _copy_func_details(func, checksig)
  File "/build/buildd/python-mock-1.0.1/mock.py", line 221, in 
_copy_func_details
    funcopy.__module__ = func.__module__
AttributeError: 'wrapper_descriptor' object has no attribute '__module__'

----------------------------------------------------------------------
Ran 293 tests in 0.369s

FAILED (errors=32, skipped=9, expected failures=3)
make[1]: *** [override_dh_auto_test] Error 1


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to