Fix for http://code.google.com/p/pyglet/issues/detail?id=26
Fix for http://code.google.com/p/pyglet/issues/detail?id=26

Index: trunk/tests/scene2d/SPRITE_MODEL.py
===================================================================
--- trunk/tests/scene2d/SPRITE_MODEL.py	(revision 556)
+++ trunk/tests/scene2d/SPRITE_MODEL.py	(working copy)
@@ -10,14 +10,21 @@

 import unittest

-from pyglet.scene2d import Sprite
+from pyglet.window import Window
+from pyglet.image import Image
+from pyglet.scene2d import Sprite, Image2d

 class SpriteModelTest(unittest.TestCase):

     def setUp(self):
-        self.s = Sprite(10, 10, 10, 10, None)
+        self.w = Window(width=1, height=1, visible=False)
+        self.s = Sprite(10, 10, 10, 10,
+            Image2d.from_image(Image.create_solid(1)))
         assert (self.s.x, self.s.y) == (10, 10)

+    def tearDown(self):
+        self.w.close()
+
     def test_top(self):
         assert self.s.top == 20
         self.s.top = 10

--HG--
extra : convert_revision : svn%3A14d46d22-621c-0410-bb3d-6f67920f7d95/trunk%40558

infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore