Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663610 - dev-python/python-magic-0.4.15 : [TEST] FAIL: test_descriptions (_main_.MagicTest)
Summary: dev-python/python-magic-0.4.15 : [TEST] FAIL: test_descriptions (_main_.Magic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
: 708356 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-08-14 16:01 UTC by Toralf Förster
Modified: 2020-03-03 06:17 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.35 KB, text/plain)
2018-08-14 16:01 UTC, Toralf Förster
Details
dev-python:python-magic-0.4.15:20180814-101652.log (dev-python:python-magic-0.4.15:20180814-101652.log,5.15 KB, text/plain)
2018-08-14 16:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,154.65 KB, text/plain)
2018-08-14 16:01 UTC, Toralf Förster
Details
environment (environment,104.56 KB, text/plain)
2018-08-14 16:01 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.38 KB, application/x-bzip)
2018-08-14 16:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.08 KB, application/x-bzip)
2018-08-14 16:01 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-14 16:01:04 UTC
======================================================================
FAIL: test_descriptions (__main__.MagicTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test.py", line 67, in test_descriptions

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_test_20180809-181720

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-python/python-magic
[ebuild  N    ] dev-python/python-magic-0.4.15  PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2018-08-14 16:01:07 UTC
Created attachment 543404 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-14 16:01:10 UTC
Created attachment 543406 [details]
dev-python:python-magic-0.4.15:20180814-101652.log
Comment 3 Toralf Förster gentoo-dev 2018-08-14 16:01:13 UTC
Created attachment 543408 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-08-14 16:01:17 UTC
Created attachment 543410 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-08-14 16:01:20 UTC
Created attachment 543412 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-14 16:01:24 UTC
Created attachment 543414 [details]
temp.tbz2
Comment 7 Rolf Eike Beer archtester 2020-02-06 06:23:28 UTC
I see the same in 0.4.15-r1 on sparc:

FAIL: test_descriptions (__main__.MagicTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test.py", line 73, in test_descriptions
    }, buf_equals_file=False)
  File "test/test.py", line 33, in assert_values
    self.assertIn(value, expected_value)
AssertionError: 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size modulo 2^32 15' not found in ('gzip compressed data, was "test", from Unix, last modified: Sun Jun 29 01:32:52 2008', 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix', 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix, original size 15')
Comment 8 Arfrever Frehtes Taifersar Arahesis 2020-02-06 08:04:31 UTC
Fix:
https://github.com/ahupp/python-magic/commit/18c909c4c98463d8292a7d1733aec007f178f1e5
Comment 9 Matt Turner gentoo-dev 2020-03-03 06:04:48 UTC
*** Bug 708356 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2020-03-03 06:17:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d59faf751cc6da052f20b2b6edeb1330a303aac4

commit d59faf751cc6da052f20b2b6edeb1330a303aac4
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-03-03 06:15:52 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-03-03 06:17:04 +0000

    dev-python/python-magic: Add patch to fix tests
    
    Closes: https://bugs.gentoo.org/663610
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../python-magic-0.4.15-fix-gzip-test-2.patch      | 26 ++++++++++++++++++++++
 .../python-magic/python-magic-0.4.15-r1.ebuild     |  2 ++
 2 files changed, 28 insertions(+)