pgmagick-0.5.6: test_pgmagick_api.py errors

dev-zero avatardev-zero created an issue

When I tried to check my build, I got the following errors when running test_pgmagick_api.py with the following configuration:

  • boost-1.52.0
  • python-2.7
  • graphicsmagick-1.3.18

Besides, would it be possible to include the test/Makefile in the release tarball?

~ $ PYTHONPATH=/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages python test_pgmagick_api.py .....E...............E............E..........EE...... ====================================================================== ERROR: test_composite (main.DrawTestCase)


Traceback (most recent call last): File "test_pgmagick_api.py", line 121, in test_composite self.d.composite(10, 10, 0, 0, img1) File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 788, in composite composite = pgmagick.DrawableCompositeImage(x, y, image) ArgumentError: Python argument types in DrawableCompositeImage.init(DrawableCompositeImage, int, int, Image) did not match C++ signature: init(_object, double, double, double, double, Magick::Image, MagickLib::CompositeOperator) init(_object, double, double, double, double, std::string, MagickLib::CompositeOperator) init(_object, double, double, double, double, Magick::Image) init(_object, double, double, double, double, std::string) init(_object, double, double, Magick::Image) init(_object, double, double, std::string) init(_object*, Magick::DrawableCompositeImage)

====================================================================== ERROR: test_path (main.DrawTestCase)


Traceback (most recent call last): File "test_pgmagick_api.py", line 233, in test_path self.d.path(paths) File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 878, in path vpath = _convert_vpathlist(vpath) File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 509, in _convert_vpathlist vpl.append(obj) ArgumentError: Python argument types in VPathList.append(VPathList, PathMovetoAbs) did not match C++ signature: append(std::list<Magick::VPath, std::allocator<Magick::VPath> > {lvalue}, Magick::VPath)

====================================================================== ERROR: test_stroke_linejoin (main.DrawTestCase)


Traceback (most recent call last): File "test_pgmagick_api.py", line 345, in test_stroke_linejoin self.im.draw(self.d) File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 677, in draw self.img.draw(draw) RuntimeError: Magick: Non-conforming drawing primitive definition (stroke-linejoin) reported by magick/render.c:3017 (DrawImage)

====================================================================== ERROR: test_composite_arg_gravity (main.ImageTestCase)


Traceback (most recent call last): File "test_pgmagick_api.py", line 62, in test_composite_arg_gravity base.composite(layer, 'center', 'over') File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 643, in composite self.img.composite(composite_img, offset, compose) ArgumentError: Python argument types in Image.composite(Image, Image, GravityType, CompositeOperator) did not match C++ signature: composite(Magick::Image {lvalue}, Magick::Image, MagickLib::GravityType) composite(Magick::Image {lvalue}, Magick::Image, MagickLib::GravityType, MagickLib::CompositeOperator) composite(Magick::Image {lvalue}, Magick::Image, Magick::Geometry) composite(Magick::Image {lvalue}, Magick::Image, Magick::Geometry, MagickLib::CompositeOperator) composite(Magick::Image {lvalue}, Magick::Image, int, int) composite(Magick::Image {lvalue}, Magick::Image, int, int, MagickLib::CompositeOperator)

====================================================================== ERROR: test_composite_arg_list (main.ImageTestCase)


Traceback (most recent call last): File "test_pgmagick_api.py", line 53, in test_composite_arg_list base.composite(layer, (10, 10), 'over') File "/var/tmp/paludis/dev-python-pgmagick-0.5.6/image/usr/lib64/python2.7/site-packages/pgmagick/api.py", line 643, in composite self.img.composite(composite_img, offset, compose) ArgumentError: Python argument types in Image.composite(Image, Image, Geometry, CompositeOperator) did not match C++ signature: composite(Magick::Image {lvalue}, Magick::Image, MagickLib::GravityType) composite(Magick::Image {lvalue}, Magick::Image, MagickLib::GravityType, MagickLib::CompositeOperator) composite(Magick::Image {lvalue}, Magick::Image, Magick::Geometry) composite(Magick::Image {lvalue}, Magick::Image, Magick::Geometry, MagickLib::CompositeOperator) composite(Magick::Image {lvalue}, Magick::Image, int, int) composite(Magick::Image {lvalue}, Magick::Image, int, int, MagickLib::CompositeOperator)


Ran 53 tests in 0.932s

FAILED (errors=5)

Comments (0)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.