testinggtk r398 - trunk/tests



Author: bjornl
Date: Sat Aug 30 01:02:27 2008
New Revision: 398
URL: http://svn.gnome.org/viewvc/testinggtk?rev=398&view=rev

Log:
Reverse tests. Setting the adjustments to None is ok

Modified:
   trunk/tests/test_scrolledwindow.py

Modified: trunk/tests/test_scrolledwindow.py
==============================================================================
--- trunk/tests/test_scrolledwindow.py	(original)
+++ trunk/tests/test_scrolledwindow.py	Sat Aug 30 01:02:27 2008
@@ -23,20 +23,14 @@
 
 def test_none_adjustment():
     '''
-    Ensure that a TypeError is thrown when you attempt to set None as
-    the horizontal or vertical adjustment.
+    Ensure that setting the vertical and horizontal adjustments to
+    ``None`` works.
+
+    :bug: #529623
     '''
     scroll = gtk.ScrolledWindow(None, None)
-    try:
-        scroll.set_hadjustment(None)
-        assert False
-    except TypeError:
-        pass
-    try:
-        scroll.set_vadjustment(None)
-        assert False
-    except TypeError:
-        pass
+    scroll.set_hadjustment(None)
+    scroll.set_vadjustment(None)
 
 def test_blaha():
     import gobject



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