@@ -47,19 +47,19 @@ def testStartsNewBlock(self):
47
47
48
48
def testCheckAttributes (self ):
49
49
checkAttributes = PSPUtils .checkAttributes
50
- for attrs in (dict ( man = 1 ), dict ( man = 1 , opt = 1 ) ):
50
+ for attrs in ({ ' man' : 1 }, { ' man' : 1 , ' opt' : 1 } ):
51
51
checkAttributes ('test' , attrs , (['man' ], ['opt' ]))
52
52
PSPParserException = PSPUtils .PSPParserException
53
- for attrs in (dict (), dict ( opt = 1 ), dict ( man = 1 , noopt = 1 ) ):
53
+ for attrs in ({}, { 'man' : 1 }, { ' man' : 1 , ' noopt' : 1 } ):
54
54
self .assertRaises (
55
55
PSPParserException , checkAttributes ,
56
56
'test' , attrs , (['man' ], ['opt' ]))
57
57
self .assertRaises (
58
58
PSPParserException , checkAttributes ,
59
- 'test' , dict ( opt = 1 ) , (['man1' , 'man2' ], []))
59
+ 'test' , { ' opt' : 1 } , (['man1' , 'man2' ], []))
60
60
self .assertRaises (
61
61
PSPParserException , checkAttributes ,
62
- 'test' , dict ( man = 1 ) , ([], ['opt1' , 'opt2' ]))
62
+ 'test' , { ' man' : 1 } , ([], ['opt1' , 'opt2' ]))
63
63
64
64
def testNormalizeIndentation (self ):
65
65
normalizeIndentation = PSPUtils .normalizeIndentation
0 commit comments