Comment 0 for bug 1403214

Revision history for this message
Miro HronĨok (churchyard) wrote :

First of all, sorry for assigning this to heat-cfntools. However, the mox3 module was not listed. In case mox3 has a different issue tracking, let me know, on PyPI, all I get is that it is part of OpenStack project. I've chosen heat-cfntools as it uses mox3 for tests.

https://pypi.python.org/pypi/mox3

I'm trying to package mox3 for Fedora. When I the tests in mox3 0.7.0, I get this exception:

+ PYTHON=/usr/bin/python3
+ /usr/bin/python3 setup.py testr --slowest
running testr
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ --list
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ --load-list /tmp/tmpbjtco4ow
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ --load-list /tmp/tmp2luere5f
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ --load-list /tmp/tmpwkeburha
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ --load-list /tmp/tmpla8ia91g
======================================================================
FAIL: mox3.tests.test_mox.MoxTest.testStubOutClass_OldStyle
tags: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-mox3-0.7.0-1.fc22/mox3/tests/test_mox.py", line 1915, in testStubOutClass_OldStyle
    mock_instance.Value().AndReturn('mock instance')
  File "/builddir/build/BUILD/python3-python-mox3-0.7.0-1.fc22/mox3/mox.py", line 1107, in __call__
    self._checker.Check(params, named_params)
  File "/builddir/build/BUILD/python3-python-mox3-0.7.0-1.fc22/mox3/mox.py", line 1029, in Check
    % (' '.join(sorted(still_needed))))
AttributeError: No values given for arguments: self
Expecting a string b'2014-12-16 20:42:25.441886Z'
error: testr failed (3)