testinggtk r247 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r247 - trunk/tests/gdk
- Date: Wed, 25 Jun 2008 21:08:32 +0000 (UTC)
Author: bjornl
Date: Wed Jun 25 21:08:32 2008
New Revision: 247
URL: http://svn.gnome.org/viewvc/testinggtk?rev=247&view=rev
Log:
Test for options=None for gdk.Pixbuf.save
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 Jun 25 21:08:32 2008
@@ -24,4 +24,13 @@
'''
pixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, 100, 100)
pixbuf.save_to_callback(lambda x: x, 'jpeg', options = None)
-
+
+def test_save_options_none():
+ '''
+ Ensure that ``None`` can be specified explicitly as the
+ ``options`` argument to ``save``.
+
+ :bug: #472462
+ '''
+ pixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, 100, 100)
+ pixbuf.save('foo', 'png', options = None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]