summaryrefslogtreecommitdiff
path: root/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch
blob: 88ee2b0a0d5d8de2ea86a87b6093cb007d44ad90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Skip tests which interact with the root window due to permission failures.

--- cairocffi-0.8.0/cairocffi/test_xcb.py
+++ cairocffi-0.8.0/cairocffi/test_xcb.py
@@ -118,14 +118,14 @@
     gc = create_gc(xcb_conn)
 
     # create XCB surface on pixmap
-    root_visual = find_root_visual(xcb_conn)
-    surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height)
-    assert surface
+    #root_visual = find_root_visual(xcb_conn)
+    #surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height)
+    #assert surface
 
     # use xcb surface to create context, draw white
-    ctx = Context(surface)
-    ctx.set_source_rgb(1, 1, 1)
-    ctx.paint()
+    #ctx = Context(surface)
+    #ctx.set_source_rgb(1, 1, 1)
+    #ctx.paint()
 
     # map the window and wait for it to appear
     xcb_conn.core.MapWindow(wid)