testinggtk r164 - trunk/tests



Author: bjornl
Date: Fri Jun 20 21:34:50 2008
New Revision: 164
URL: http://svn.gnome.org/viewvc/testinggtk?rev=164&view=rev

Log:
Recreate the StringIO file after each run so that not old Warning messages get stuck in the buffer

Modified:
   trunk/tests/utils.py

Modified: trunk/tests/utils.py
==============================================================================
--- trunk/tests/utils.py	(original)
+++ trunk/tests/utils.py	Fri Jun 20 21:34:50 2008
@@ -13,6 +13,7 @@
 
     def get_warning_triplets(self):
         lines = self.file.getvalue().split('\n')
+        self.file = StringIO.StringIO()
         return zip(lines, lines[1:], lines[2:])
         
     def push_stderr(self):



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