diff options
Diffstat (limited to 'dev-python/xcffib/files')
-rw-r--r-- | dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch b/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch new file mode 100644 index 000000000000..da33bf3934cb --- /dev/null +++ b/dev-python/xcffib/files/xcffib-0.4.2-test-imports.patch @@ -0,0 +1,35 @@ +Relative imports don't work because the test dir isn't a proper python module. + +--- xcffib-0.4.2/test/test_connection.py ++++ xcffib-0.4.2/test/test_connection.py +@@ -20,7 +20,7 @@ + + from xcffib import ffi + from xcffib.testing import XvfbTest +-from .testing import XcffibTest ++from testing import XcffibTest + + from nose.tools import raises + from nose import SkipTest +--- xcffib-0.4.2/test/test_fakeinput.py ++++ xcffib-0.4.2/test/test_fakeinput.py +@@ -2,7 +2,7 @@ + import xcffib.xproto + import xcffib.xtest + +-from .testing import XcffibTest ++from testing import XcffibTest + + class TestConnection(XcffibTest): + def test_fakeinput(self): +--- xcffib-0.4.2/test/test_python_code.py ++++ xcffib-0.4.2/test/test_python_code.py +@@ -18,7 +18,7 @@ + import struct + from xcffib.xproto import EventMask + +-from .testing import XcffibTest ++from testing import XcffibTest + + class TestPythonCode(XcffibTest): + |