summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2009-07-15 02:00:13 +0000
committerJesus Rivero <neurogeek@gentoo.org>2009-07-15 02:00:13 +0000
commitc2c5a33ea076aa0fc00ffe2f67f91965baf7915d (patch)
tree0ed52ed91734fe827a3398f8de385d26ecc51552 /dev-python/pygame/files
parentFix build ignoring --disable-gtk-doc. (diff)
downloadgentoo-2-c2c5a33ea076aa0fc00ffe2f67f91965baf7915d.tar.gz
gentoo-2-c2c5a33ea076aa0fc00ffe2f67f91965baf7915d.tar.bz2
gentoo-2-c2c5a33ea076aa0fc00ffe2f67f91965baf7915d.zip
Fixed some tests that failed. Closes Bug #223055.
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'dev-python/pygame/files')
-rw-r--r--dev-python/pygame/files/pygame-1.8.1_icon_path.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/pygame/files/pygame-1.8.1_icon_path.patch b/dev-python/pygame/files/pygame-1.8.1_icon_path.patch
new file mode 100644
index 000000000000..d2f1eb7385de
--- /dev/null
+++ b/dev-python/pygame/files/pygame-1.8.1_icon_path.patch
@@ -0,0 +1,30 @@
+Patch: Patch to make tests works
+Added: 14 Jul 2009
+By: Jesus Rivero (Neurogeek)
+
+diff -uNr pygame-1.8.1release.orig/test/image_test.py pygame-1.8.1release/test/image_test.py
+--- pygame-1.8.1release.orig/test/image_test.py 2009-07-14 19:20:38.000000000 -0430
++++ pygame-1.8.1release/test/image_test.py 2009-07-14 19:34:11.000000000 -0430
+@@ -27,7 +27,7 @@
+ def testLoadIcon(self):
+ """ see if we can load the pygame icon.
+ """
+- f = pygame.pkgdata.getResource("pygame_icon.bmp")
++ f = pygame.pkgdata.getResource("../../../lib/pygame_icon.bmp")
+ self.assertEqual(f.mode, "rb")
+
+ surf = pygame.image.load_basic(f)
+
+diff -uNtr pygame-1.8.1release.orig/test/font_test.py pygame-1.8.1release.new/test/font_test.py
+--- pygame-1.8.1release.orig/test/font_test.py 2009-07-14 19:20:38.000000000 -0430
++++ pygame-1.8.1release.new/test/font_test.py 2009-07-14 20:53:02.000000000 -0430
+@@ -11,7 +11,7 @@
+ """
+ #print __file__
+ pygame.font.init ()
+- f = pygame.font.Font(None, 20)
++ f = pygame.font.Font("lib/freesansbold.ttf", 20)
+ s = f.render("foo", True, [0, 0, 0], [255, 255, 255])
+ s = f.render("xxx", True, [0, 0, 0], [255, 255, 255])
+ s = f.render("", True, [0, 0, 0], [255, 255, 255])
+