Skip to content

FAIL: test_single_namespace_single_path_leaf_names #67

Description

@danstender

Hi,
we've got a test failure here in the Debian package:

======================================================================
FAIL: test_single_namespace_single_path_leaf_names (test.test_exempi.TestIteration)
Get just leaf names from a single path, single namespace.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<BUILDDIR>>/python-xmp-toolkit-2.0.1+git20140309.5437b0a/test/test_exempi.py", line 546, in test_single_namespace_single_path_leaf_names
    self.assertEqual(schemas, [NS_DC, NS_DC, NS_DC])
AssertionError: Lists differ: [u'http://purl.org/dc/elements... != ['http://purl.org/dc/elements/...

First differing element 1:
u''
'http://purl.org/dc/elements/1.1/'

- [u'http://purl.org/dc/elements/1.1/',
?  -

+ ['http://purl.org/dc/elements/1.1/',
-  u'',
-  u'http://www.w3.org/XML/1998/namespace']
+  'http://purl.org/dc/elements/1.1/',
+  'http://purl.org/dc/elements/1.1/']

----------------------------------------------------------------------
Ran 73 tests in 1.150s

FAILED (failures=1, skipped=3)

Buildlog: http://aws-logs.debian.net/2017/01/11/python-xmp-toolkit_2.0.1+git20140309.5437b0a-3_unstable.log
DS

Activity

  1. quintusdias commented on Jan 20, 2017

    @quintusdias
    Contributor
  2. hfiguiere commented on Jan 22, 2017

    @hfiguiere
    Contributor

    In Exempi 2.4.0 it return the following schemas: ['http://purl.org/dc/elements/1.1/', '', 'http://www.w3.org/XML/1998/namespace'] which looks what I'd expect. I'll check the difference between 2.3.0 and 2.4.0: the Adobe SDK version changed. Bonus: I'll add that to the exempi test suite.

    Exempi bug is https://bugs.freedesktop.org/show_bug.cgi?id=99480

  3. hfiguiere commented on Jan 22, 2017

    @hfiguiere
    Contributor

    The change was introduced by Adobe in the "CS6" SDK. This is hfiguiere/exempi@81a4c6bc , in XMPCore/source/XMPIterator.cpp:573 which happened between 2.3.0 and 2.4.0

    • This actually fix a bug. (I found the expected values before to not be the right one)
    • This also (IMHO) break API/ABI since we no longer get the same result. Not sure what's the best approach, and I think fixing the buggy behaviour is more important.
  4. hfiguiere commented on Jan 22, 2017

    @hfiguiere
    Contributor

    I'll submit a fix to the test suite.

  5. danstender commented on Jan 26, 2017

    @danstender
    Author
  6. added a commit that references this issue on Jun 5, 2019
  7. added a commit that references this issue on Jul 17, 2021
  8. added a commit that references this issue on Jul 22, 2021
  9. added a commit that references this issue on May 11, 2026
  10. added a commit that references this issue on May 14, 2026
  11. added a commit that references this issue on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions