Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663610

Summary: dev-python/python-magic-0.4.15 : [TEST] FAIL: test_descriptions (_main_.MagicTest)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Ian Whyman (thev00d00) (RETIRED) <thev00d00>
Status: RESOLVED FIXED    
Severity: normal CC: alexey+gentoo, erhard_f
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-python:python-magic-0.4.15:20180814-101652.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

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(+)