@@ -566,7 +566,7 @@ class MyDict(UserDict.UserDict):
566566
567567 self .assertEqual (bytes (b'%(foo)s' ) % d , b'bar' )
568568
569- @unittest .skipUnless (utils .PY35 or utils .PY2 ,
569+ @unittest .skipUnless (utils .PY35_PLUS or utils .PY2 ,
570570 'test requires Python 2 or 3.5+' )
571571 def test_mod_more (self ):
572572 self .assertEqual (b'%s' % b'aaa' , b'aaa' )
@@ -577,10 +577,10 @@ def test_mod_more(self):
577577 self .assertEqual (bytes (b'%s' ) % (b'aaa' ,), b'aaa' )
578578 self .assertEqual (bytes (b'%s' ) % (bytes (b'aaa' ),), b'aaa' )
579579
580- self .assertEqual (bytes (b'%(x)s' ) % {'x' : b'aaa' }, b'aaa' )
581- self .assertEqual (bytes (b'%(x)s' ) % {'x' : bytes (b'aaa' )}, b'aaa' )
580+ self .assertEqual (bytes (b'%(x)s' ) % {b 'x' : b'aaa' }, b'aaa' )
581+ self .assertEqual (bytes (b'%(x)s' ) % {b 'x' : bytes (b'aaa' )}, b'aaa' )
582582
583- @unittest .skipUnless (utils .PY35 or utils .PY2 ,
583+ @unittest .skipUnless (utils .PY35_PLUS or utils .PY2 ,
584584 'test requires Python 2 or 3.5+' )
585585 def test_mod (self ):
586586 """
@@ -606,7 +606,7 @@ def test_mod(self):
606606 a = b % (bytes (b'seventy-nine' ), 79 )
607607 self .assertEqual (a , b'seventy-nine / 100 = 79%' )
608608
609- @unittest .skipUnless (utils .PY35 or utils .PY2 ,
609+ @unittest .skipUnless (utils .PY35_PLUS or utils .PY2 ,
610610 'test requires Python 2 or 3.5+' )
611611 def test_imod (self ):
612612 """
0 commit comments