@@ -62,17 +62,17 @@ def test_product(self):
62
62
alias = self .types ['alias' ]
63
63
self .assertEqual (
64
64
str (alias ),
65
- 'Product([Field(identifier, name), Field(identifier, asname, opt=True )], '
65
+ 'Product([Field(identifier, name), Field(identifier, asname, quantifiers=[OPTIONAL] )], '
66
66
'[Field(int, lineno), Field(int, col_offset), '
67
- 'Field(int, end_lineno, opt=True ), Field(int, end_col_offset, opt=True )])' )
67
+ 'Field(int, end_lineno, quantifiers=[OPTIONAL] ), Field(int, end_col_offset, quantifiers=[OPTIONAL] )])' )
68
68
69
69
def test_attributes (self ):
70
70
stmt = self .types ['stmt' ]
71
71
self .assertEqual (len (stmt .attributes ), 4 )
72
72
self .assertEqual (repr (stmt .attributes [0 ]), 'Field(int, lineno)' )
73
73
self .assertEqual (repr (stmt .attributes [1 ]), 'Field(int, col_offset)' )
74
- self .assertEqual (repr (stmt .attributes [2 ]), 'Field(int, end_lineno, opt=True )' )
75
- self .assertEqual (repr (stmt .attributes [3 ]), 'Field(int, end_col_offset, opt=True )' )
74
+ self .assertEqual (repr (stmt .attributes [2 ]), 'Field(int, end_lineno, quantifiers=[OPTIONAL] )' )
75
+ self .assertEqual (repr (stmt .attributes [3 ]), 'Field(int, end_col_offset, quantifiers=[OPTIONAL] )' )
76
76
77
77
def test_constructor_fields (self ):
78
78
ehandler = self .types ['excepthandler' ]
0 commit comments