1. Pierre-Yves David
  2. soya-patch-queue

Commits

Pierre-Yves David  committed 0237c70

small improvement before pushing to svn

  • Participants
  • Parent commits 24ba23a
  • Branches default

Comments (0)

Files changed (3)

File init_moreverbose_sdl_opengl.diff

View file
 The "* Soya * Using XXX Surface." is intended  to help people diagnostics SDL
 issues.
 
-
-diff -r 7decdb3bdc22 -r 2aa240e1f224 soya/init.pyx
+diff -r 7decdb3bdc22 soya/init.pyx
 --- a/soya/init.pyx	Sun Jan 17 18:49:05 2010 +0100
-+++ b/soya/init.pyx	Sun Jan 17 19:02:26 2010 +0100
++++ b/soya/init.pyx	Sun Jan 17 20:07:30 2010 +0100
 @@ -241,10 +241,12 @@
  	#cdef unsigned int flags
  	cdef int flags
  	cdef int i
  	from time import sleep
 +	if not quiet:
-+		sys.stdout.write("Waiting for OpenGL initialization ")
++		sys.stdout.write("* Soya * OpenGL initialization ")
  	for i from 0 <= i < 10:
  		if glGetString(GL_RENDERER) != NULL: break
 +		if not quiet:

File series

View file
 0006-Correct-the-import-for-elementtree-used-in-svgelemen.patch
 0007-Tutorial-ode-mass-delete-exit-0-call-to-allow-the-pr.patch
 0008-Change-ode-join-tutorial-to-show-a-double-pendulum-e.patch
+unittest_event_lgc_common_deps.diff

File unittest_event_lgc_common_deps.diff

View file
+From: Pierre-Yves David <pierre-yves.david@ens-lyon.org>
+
+[test] Remove dependency to logilab-common in unittest_event
+
+EventsTC was using the assertIn methode only defined in
+Logilab.common.testlib.TestCase.
+
+
+diff -r 3f822ea0598e -r 2f0d098adb03 soya/test/unittest_events.py
+--- a/soya/test/unittest_events.py	Sun Jan 17 19:52:12 2010 +0100
++++ b/soya/test/unittest_events.py	Sun Jan 17 20:01:42 2010 +0100
+@@ -62,12 +62,11 @@
+ 
+ class EventsTC(SoyaTestCase):
+ 
+-
+ 	def test_queue_event(self):
+ 		self.main_loop.queue_event(DOWN_LEFT)
+ 		self.run_soya_rounds()
+-		self.assertIn(DOWN_LEFT, self.main_loop.raw_events)
+-		self.assertIn(DOWN_LEFT, self.main_loop.events)
++		self.assertTrue(DOWN_LEFT in self.main_loop.raw_events)
++		self.assertTrue(DOWN_LEFT in self.main_loop.events)
+ 
+ 	def test_no_coalesced(self):
+ 		input_ev = [DOWN_LEFT, MOUSE_MOTION_1, DOWN_A]