mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
python27Packages.cairocffi: FIX test_scaled_font
workaround for https://github.com/Kozea/cairocffi/issues/88
This commit is contained in:
parent
78e9bc731b
commit
9e18b81ded
@ -0,0 +1,11 @@
|
|||||||
|
--- a/cairocffi/test_cairo.py 2016-09-01 07:52:33.303180302 +0200
|
||||||
|
+++ b/cairocffi/test_cairo.py 2016-09-01 09:06:19.595701944 +0200
|
||||||
|
@@ -998,7 +998,7 @@
|
||||||
|
|
||||||
|
font = ScaledFont(ToyFontFace('monospace'))
|
||||||
|
_, _, _, _, x_advance_mono, y_advance = font.text_extents('i' * 10)
|
||||||
|
- assert x_advance_mono > x_advance
|
||||||
|
+ assert x_advance_mono >= x_advance
|
||||||
|
assert y_advance == 0
|
||||||
|
# Not much we can test:
|
||||||
|
# The toy font face was "materialized" into a specific backend.
|
@ -3121,6 +3121,7 @@ in modules // {
|
|||||||
})
|
})
|
||||||
|
|
||||||
../development/python-modules/cairocffi/dlopen-paths.patch
|
../development/python-modules/cairocffi/dlopen-paths.patch
|
||||||
|
../development/python-modules/cairocffi/fix_test_scaled_font.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user