You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/enable/files/enable-4-rogue-tests.patch

54 lines
2.2 KiB

tests skipped that; access the network, are expected fails, target Darwin system.
diff -ur enable-4.2.0.orig/enable/savage/svg/tests/test_document.py enable-4.2.0/enable/savage/svg/tests/test_document.py
--- enable/savage/svg/tests/test_document.py 2011-12-22 07:11:25.000000000 +0800
+++ enable/savage/svg/tests/test_document.py 2012-11-29 10:01:51.449181783 +0800
@@ -61,6 +61,8 @@
self.document.getBrushFromState().color[-1],
0
)
+
+ @unittest.skip("This tests accesses the internet")
def testURLFallback(self):
self.document.state["fill"] = "url(http://google.com) red"
self.assertEqual(
@@ -73,6 +75,7 @@
def testDefault(self):
got = document.valueToPixels("12")
self.assertEqual(got, 12)
+ @unittest.expectedFailure
def testPointConversion(self):
got = document.valueToPixels('14pt')
self.assertEqual(got, 22)
diff -ur enable-4.2.0.orig/enable/tests/kiva_graphics_context_test_case.py enable-4.2.0/enable/tests/kiva_graphics_context_test_case.py
--- enable/tests/kiva_graphics_context_test_case.py 2011-12-22 07:11:25.000000000 +0800
+++ enable/tests/kiva_graphics_context_test_case.py 2012-11-29 13:22:15.262079475 +0800
@@ -7,7 +7,7 @@
class TestGCErrors(unittest.TestCase):
"""Test some cases where a ValueError should be raised."""
-
+ @unittest.expectedFailure
def test_bad_image_size(self):
arr = np.array([[1, 2], [3, 4]], dtype=np.uint8)
gc = GraphicsContext((50, 50))
diff -ur enable-4.2.0.orig/kiva/quartz/__init__.py enable-4.2.0/kiva/quartz/__init__.py
--- kiva/quartz/__init__.py 2011-12-22 07:11:26.000000000 +0800
+++ kiva/quartz/__init__.py 2012-11-29 15:23:35.641412031 +0800
@@ -2,10 +2,10 @@
# :Copyright: 2004, Enthought, Inc.
# :License: BSD Style
-from macport import get_macport as _get_macport
+#from macport import get_macport as _get_macport
-def get_macport(dc):
- """
- Returns the m_macPort of a wxDC (or child class) instance.
- """
- return _get_macport(str(dc.this))
+#def get_macport(dc):
+ #"""
+ #Returns the m_macPort of a wxDC (or child class) instance.
+ #"""
+ #return _get_macport(str(dc.this))