python-xcffib/python-xcffib-ffi-import.patch
Dirk Mueller 664e81bc05 Accepting request 1073955 from home:pgajdos:python
- version update to 1.2.0
  * no upstream changelog found
- do not require six
- added patches
  fix 8a488867d3
  + python-xcffib-six-leftover.patch
  fix ffi import [bsc#1209570c4]
  + python-xcffib-ffi-import.patch

OBS-URL: https://build.opensuse.org/request/show/1073955
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xcffib?expand=0&rev=24
2023-03-24 12:17:27 +00:00

24 lines
875 B
Diff

Index: xcffib-1.2.0/test/test_python_code.py
===================================================================
--- xcffib-1.2.0.orig/test/test_python_code.py
+++ xcffib-1.2.0/test/test_python_code.py
@@ -19,7 +19,6 @@ import xcffib.xinput
import os
import struct
import sys
-from xcffib._ffi import ffi
from xcffib.xproto import EventMask
from .conftest import XcffibTest
@@ -176,8 +175,8 @@ class TestPythonCode:
)
# Create cdata from the bytearray and cast it to a generic reply
- cdata = ffi.new("char x[72]", B_HIT_EVENT)
- generic_reply = ffi.cast("xcb_generic_reply_t *", cdata)
+ cdata = xcffib.ffi.new("char x[72]", B_HIT_EVENT)
+ generic_reply = xcffib.ffi.cast("xcb_generic_reply_t *", cdata)
# Pass the reply to our hoist_event method
event = xcffib_test.conn.hoist_event(generic_reply)