jwilk / didjvu

DjVu encoder with foreground/background separation
https://jwilk.net/software/didjvu
GNU General Public License v2.0
10 stars 8 forks source link

testsuite break with python-libxmp 2.0.1 #9

Closed jwilk closed 9 years ago

jwilk commented 9 years ago

Issue reported by @danstender:

Running the tests of 4.0 when python-libxmp 2.0.1 is available there are some assertion errors,:

tests.test_xmp.test_metadata.test_empty(libxmp_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_empty(libxmp_backend, libxmp_checker) ... ok
tests.test_xmp.test_metadata.test_empty(pyexiv2_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_empty(pyexiv2_backend, libxmp_checker) ... ok
tests.test_xmp.test_metadata.test_new(libxmp_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_new(libxmp_backend, libxmp_checker) ... ok
tests.test_xmp.test_metadata.test_new(pyexiv2_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_new(pyexiv2_backend, libxmp_checker) ... FAIL
tests.test_xmp.test_metadata.test_updated(libxmp_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_updated(libxmp_backend, libxmp_checker) ... ok
tests.test_xmp.test_metadata.test_updated(pyexiv2_backend, exiv2_checker) ... SKIP: [Errno 2] No such file or directory: 'exiv2'
tests.test_xmp.test_metadata.test_updated(pyexiv2_backend, libxmp_checker) ... FAIL
tests.test_xmp.test_uuid ... ok
tests.test_xmp.test_namespaces ... ok

======================================================================
FAIL: tests.test_xmp.test_metadata.test_new(pyexiv2_backend, libxmp_checker)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/«PKGBUILDDIR»/tests/test_xmp.py", line 270, in test
    assert_equal(get(ns.xmpmm, 'History[1]/stEvt:when'), str(mod_date))
AssertionError: u'2015-05-12T10:26:01-00:00' != '2015-05-12T10:26:01Z'

======================================================================
FAIL: tests.test_xmp.test_metadata.test_updated(pyexiv2_backend, libxmp_checker)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/«PKGBUILDDIR»/tests/test_xmp.py", line 402, in test
    assert_equal(get(ns.xmpmm, 'History[2]/stEvt:when'), mod_date)
AssertionError: u'2015-05-12T10:26:01-00:00' != u'2015-05-12T10:26:01Z'
- 2015-05-12T10:26:01-00:00
?                    ^^^^^^
+ 2015-05-12T10:26:01Z
?                    ^

Best, DS

jwilk commented 9 years ago

Thanks. Should be fixed in 1bf267ea3296ec2c21851d4e78abda2aec4ad236.

jwilk commented 9 years ago

Fixed in didjvu 0.4.1.