[Python-checkins] r65178 - python/trunk/Lib/test/test_scope.py

benjamin.peterson python-checkins at python.org
Tue Jul 22 00:05:34 CEST 2008


Author: benjamin.peterson
Date: Tue Jul 22 00:05:34 2008
New Revision: 65178
Log:
don't use assert statement
Modified:
 python/trunk/Lib/test/test_scope.py
Modified: python/trunk/Lib/test/test_scope.py
==============================================================================
--- python/trunk/Lib/test/test_scope.py	(original)
+++ python/trunk/Lib/test/test_scope.py	Tue Jul 22 00:05:34 2008
@@ -533,7 +533,7 @@
 def f(self):
 return x
 
- assert x == 12 # Used to raise UnboundLocalError
+ self.assertEquals(x, 12) # Used to raise UnboundLocalError
 finally:
 sys.settrace(None)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /