testinggtk r380 - trunk/tests/gdk



Author: bjornl
Date: Wed Aug 20 19:50:30 2008
New Revision: 380
URL: http://svn.gnome.org/viewvc/testinggtk?rev=380&view=rev

Log:
Add bug ref and lambda should only accept one arg

Modified:
   trunk/tests/gdk/test_pixbuf.py

Modified: trunk/tests/gdk/test_pixbuf.py
==============================================================================
--- trunk/tests/gdk/test_pixbuf.py	(original)
+++ trunk/tests/gdk/test_pixbuf.py	Wed Aug 20 19:50:30 2008
@@ -39,9 +39,11 @@
     '''
     Ensure that ``None`` can be specified explicitly as the
     ``user_data`` argument to ``save_to_callback``.
+
+    :bug: #472462
     '''
     pixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, 100, 100)
-    pixbuf.save_to_callback(lambda *args: args, 'jpeg', user_data = None)
+    pixbuf.save_to_callback(lambda x: x, 'jpeg', user_data = None)
 
 def test_save_options_wrong():
     '''



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]