Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530566 - dev-python/pympler-0.3.1 test fail with python 3.4
Summary: dev-python/pympler-0.3.1 test fail with python 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL: https://github.com/pympler/pympler/is...
Whiteboard:
Keywords:
Depends on:
Blocks: python-3.4
  Show dependency tree
 
Reported: 2014-11-25 10:24 UTC by Pacho Ramos
Modified: 2015-04-08 05:14 UTC (History)
1 user (show)

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


Attachments
build.log (pympler-0.3.1:20141125-102237.log,39.68 KB, text/plain)
2014-11-25 10:24 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2014-11-25 10:24:30 UTC
Created attachment 390248 [details]
build.log

.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-03-31 07:14:54 UTC
under py3.4;

$ PYTHON_TARGETS=python3_4 ebuild pympler-0.3.1.ebuild  clean test

======================================================================
FAIL: test_uncollectable (gui.test_garbage.GarbageTestCase)
Test uncollectable object tracking.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/pympler-0.3.1/work/Pympler-0.3.1/test/gui/test_garbage.py", line 226, in test_uncollectable
    self.assertEqual(len(genemy), 1)
AssertionError: 0 != 1

======================================================================
FAIL: test_flatsize_vs_getsizeof (asizeof.test_asizeof.AsizeofTest)
Test asizeof.flatsize() vs sys.getsizeof()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/pympler-0.3.1/work/Pympler-0.3.1/test/asizeof/test_asizeof.py", line 26, in test_flatsize_vs_getsizeof
    n, e = f(failf=self._failf)  # stdf=sys.stderr)
  File "/mnt/gen2/TmpDir/portage/dev-python/pympler-0.3.1/work/Pympler-0.3.1/pympler/asizeof.py", line 2276, in test_flatsize
    a, s, _nameof(type(o)), _repr(o))
  File "/mnt/gen2/TmpDir/portage/dev-python/pympler-0.3.1/work/Pympler-0.3.1/test/asizeof/test_asizeof.py", line 17, in _failf
    self.fail(fmt % args)
AssertionError: 104 vs 616 for deque: deque([])

----------------------------------------------------------------------
Ran 114 tests in 17.571s

FAILED (failures=2)

ditto run from the source.

This is a judgement call.  2 simple tests fail under py3.4  Anyway it's filed and let's just wait for "passes fine here".  For now I am not adding py3.4 support.  Personally I think it's minor enough to add it and close this bug and observe progress on the upstream bug, however considering they do pass in py2.7 & 3.3, they need fixing.Either of you feel free otherwise it's up to the developers.

Changes to date;

 EAPI=5
 
-PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
 
 inherit distutils-r1
 
@@ -25,8 +25,6 @@
 
 S="${WORKDIR}"/${MY_P}
 
-DISTUTILS_NO_PARALLEL_BUILD=true
-
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-04-08 05:14:32 UTC
Hi, Python 3.4 support was only added in Pympler 0.4.0 (https://github.com/pympler/pympler/blob/master/CHANGELOG#L24). Could you use Pympler 0.4 instead of 0.3.1?

Test process sizes match: ps util vs /proc/self/stat ...  * python3_4: running distutils-r1_run_phase _clean_egg_info
>>> Completed testing dev-python/pympler-0.4

meaning no errors.

*pympler-0.4 (08 Apr 2015)

  08 Apr 2015; Ian Delaney <idella4@gentoo.org> +pympler-0.4.ebuild,
  pympler-0.3.1.ebuild:
  drop old impls & add py3.4 to -0.3.1, bump, add IUSE doc to install pre-built
  docs, fixes bug #530566 by pacho