Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425686 - dev-python/mocker-1.1.1 version bump request
Summary: dev-python/mocker-1.1.1 version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 15:21 UTC by Ian Delaney (RETIRED)
Modified: 2012-11-03 18:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (mocker.patch,868 bytes, patch)
2012-07-10 15:21 UTC, Ian Delaney (RETIRED)
Details | Diff
revised ebuild patch (mocker.patch,1.05 KB, patch)
2012-07-11 07:48 UTC, Ian Delaney (RETIRED)
Details | Diff
the files/mocker-1.1.1_pypy.patch (mocker-1.1.1_pypy.patch,1.44 KB, patch)
2012-07-11 07:50 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2012-07-10 15:21:00 UTC
Created attachment 317810 [details, diff]
ebuild patch

archtester mocker # USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.9" ebuild mocker-1.1.1.ebuild clean test install

 * Testing of dev-python/mocker-1.1.1 with CPython 2.5...

Ran 449 tests in 0.237s                  OK

 * Testing of dev-python/mocker-1.1.1 with CPython 2.6...

Ran 449 tests in 0.256s                  OK

 * Testing of dev-python/mocker-1.1.1 with CPython 2.7...

Ran 449 tests in 0.256s                  OK

 * Testing of dev-python/mocker-1.1.1 with PyPy 1.9 (Python 2.7)...

======================================================================
FAIL: test_install_on_object (__main__.ProxyReplacerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 4063, in test_install_on_object
    self.assertEquals(type(obj.calendar), Mock)
AssertionError: <type 'module'> != <class 'mocker.Mock'>

======================================================================
FAIL: test_unsupported_object_for_getargspec (__main__.SpecCheckerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 3883, in test_unsupported_object_for_getargspec
    self.assertRaises(TypeError, inspect.getargspec, adler32)
AssertionError: TypeError not raised

2 out of 449 isn't too bad. I'll pass them on.

archtester mocker # USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.8 2.7-pypy-1.9" ebuild mocker-1.1.1.ebuild clean merge

 * Compilation and optimization of Python modules for CPython 2.5    [ ok ]
 * Compilation and optimization of Python modules for CPython 2.6    [ ok ]
 * Compilation and optimization of Python modules for CPython 2.7    [ ok ]
 * Compilation and optimization of Python modules for PyPy 1.8 (Python 2.7)[ ok ]
 * Compilation and optimization of Python modules for PyPy 1.9 (Python 2.7)[ ok ]
>>> dev-python/mocker-1.1.1 merged.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-07-11 07:48:55 UTC
Created attachment 317894 [details, diff]
revised ebuild patch

having filed, it seems safe to have pypy skip those 2 tests.

passes all tests

 * Compilation and optimization of Python modules for CPython 2.5    [ ok ]
 * Compilation and optimization of Python modules for CPython 2.6    [ ok ]
 * Compilation and optimization of Python modules for CPython 2.7    [ ok ]
 * Compilation and optimization of Python modules for PyPy 1.9 (Python 2.7)[ ok ]
>>> dev-python/mocker-1.1.1 merged.

pypy-1.8 fails 1 single test
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-07-11 07:50:45 UTC
Created attachment 317896 [details, diff]
the files/mocker-1.1.1_pypy.patch

patch is commented at the beginning
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-11-03 18:25:31 UTC
# USE_PYTHON="2.6 2.7 2.7-pypy-1.9" ebuild mocker-1.1.1.ebuild clean test merge

 * Testing of dev-python/mocker-1.1.1 with CPython 2.6...

Ran 449 tests in 0.258s
OK

 * Testing of dev-python/mocker-1.1.1 with CPython 2.7...

Ran 449 tests in 0.254s
OK

 * Testing of dev-python/mocker-1.1.1 with PyPy 1.9 (Python 2.7)...

Ran 449 tests in 20.279s
OK
 * Compilation and optimization of Python modules for CPython 2.6    [ ok ]
 * Compilation and optimization of Python modules for CPython 2.7    [ ok ]
 * Compilation and optimization of Python modules for PyPy 1.9 (Python 2.7) [ ok ]

>>> dev-python/mocker-1.1.1 merged.