testinggtk r163 - trunk/tests



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

Log:
Forgot to copy the __name__ attribute from the decorated function

Modified:
   trunk/tests/utils.py

Modified: trunk/tests/utils.py
==============================================================================
--- trunk/tests/utils.py	(original)
+++ trunk/tests/utils.py	Fri Jun 20 21:25:31 2008
@@ -50,6 +50,7 @@
         func()
         wc.pop_stderr_and_pass_warnings()
     wrapper.__module__ = func.__module__
+    wrapper.__name__ = func.__name__
     return wrapper
 
 def fail_on_warnings(func):
@@ -70,6 +71,7 @@
         func()
         wc.pop_stderr_and_fail_warnings()
     wrapper.__module__ = func.__module__
+    wrapper.__name__ = func.__name__
     return wrapper
     
 



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