14
0
Files
python-mutagen/fix-tests-tools-names.diff
Dirk Mueller 30a3cea467 Accepting request 452417 from home:alarrosa:branches:devel:languages:python
- update to version 1.36.2:
  * ID3: Always write little endian utf-16 with BOM.
    Fixes tests on big endian machines :pr:`289`
- update to version 1.36.1:
  * Support GAE runtime 🐛`286`
  * FLAC: Fix crash when loading files with zero samples 🐛`287`
  * MP3: Handle broken lame tags written by older lame versions
- update to version 1.36:
  * ID3: Ignore trailing empty values for v2.3 text frames 🐛`276`
  * ID3: Write large APIC frames last 🐛`278`
  * EasyID3: support saving as v2.3 🐛`188`
  * FLAC: Add StreamInfo.bitrate 🐛`279`
  * mid3cp: Add ``--merge`` option 🐛`277`
  * MP4: Allow loading files without audio tracks 🐛`272`
- update to version 1.35.1:
  * Revert back to distutils 🐛`273`
- update to version 1.35:
  * Tests: Require pytest
  * Tools: Install .exe launchers on Windows
  * setup.py: Require setuptools
  * ID3:
    * Fix loading files with CRM frames 🐛`239`
    * Fix loading AENC, LINK, GRID frames with no payload
    * Merge duplicate text frames with same key on load 🐛`172`
    * Allow parsing of duplicate APIC frames 🐛`172`
    * Parse utf-16 text fields with missing BOM 🐛`267`
    * Increase max resyncs for the mpeg frame search 🐛`268`
- Add fix-tests-tools-names.diff. This fixes the tests to run
  successfully since they try to extract the module name from the tool
  name, but we changed the tools names so they can be co-installed

OBS-URL: https://build.opensuse.org/request/show/452417
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=24
2017-01-26 09:13:45 +00:00

14 lines
494 B
Diff

Index: mutagen-1.36.1/tests/test_tools.py
===================================================================
--- mutagen-1.36.1.orig/tests/test_tools.py
+++ mutagen-1.36.1/tests/test_tools.py
@@ -12,7 +12,7 @@ from tests import TestCase
def get_var(tool_name, entry="main"):
mod = importlib.import_module(
- "mutagen._tools.%s" % tool_name.replace("-", "_"))
+ "mutagen._tools.%s" % tool_name.replace("-", "_")[:tool_name.find('-2')])
return getattr(mod, entry)