@@ -51,7 +51,7 @@ class C(object):
5151 def __reduce_ex__ (self , proto ):
5252 return ""
5353 def __reduce__ (self ):
54- raise test_support .TestFailed , "shouldn't call this"
54+ raise test_support .TestFailed ( "shouldn't call this" )
5555 x = C ()
5656 y = copy .copy (x )
5757 self .assert_ (y is x )
@@ -68,7 +68,7 @@ def test_copy_cant(self):
6868 class C (object ):
6969 def __getattribute__ (self , name ):
7070 if name .startswith ("__reduce" ):
71- raise AttributeError , name
71+ raise AttributeError ( name )
7272 return object .__getattribute__ (self , name )
7373 x = C ()
7474 self .assertRaises (copy .Error , copy .copy , x )
@@ -224,7 +224,7 @@ class C(object):
224224 def __reduce_ex__ (self , proto ):
225225 return ""
226226 def __reduce__ (self ):
227- raise test_support .TestFailed , "shouldn't call this"
227+ raise test_support .TestFailed ( "shouldn't call this" )
228228 x = C ()
229229 y = copy .deepcopy (x )
230230 self .assert_ (y is x )
@@ -241,7 +241,7 @@ def test_deepcopy_cant(self):
241241 class C (object ):
242242 def __getattribute__ (self , name ):
243243 if name .startswith ("__reduce" ):
244- raise AttributeError , name
244+ raise AttributeError ( name )
245245 return object .__getattribute__ (self , name )
246246 x = C ()
247247 self .assertRaises (copy .Error , copy .deepcopy , x )
@@ -565,7 +565,7 @@ class C(tuple):
565565 def test_getstate_exc (self ):
566566 class EvilState (object ):
567567 def __getstate__ (self ):
568- raise ValueError , "ain't got no stickin' state"
568+ raise ValueError ( "ain't got no stickin' state" )
569569 self .assertRaises (ValueError , copy .copy , EvilState ())
570570
571571 def test_copy_function (self ):
0 commit comments