File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ class struct_frozen(Structure):
80
80
continue
81
81
items .append ((entry .name .decode ("ascii" ), entry .size ))
82
82
83
- expected = [("__hello__" , 142 ),
84
- ("__phello__" , - 142 ),
85
- ("__phello__.spam" , 142 ),
83
+ expected = [("__hello__" , 168 ),
84
+ ("__phello__" , - 168 ),
85
+ ("__phello__.spam" , 168 ),
86
86
]
87
87
self .assertEqual (items , expected , "PyImport_FrozenModules example "
88
88
"in Doc/library/ctypes.rst may be out of date" )
Original file line number Diff line number Diff line change @@ -548,10 +548,10 @@ def test_pep_409_verbiage(self):
548
548
script_name = _make_test_script (script_dir , 'script' , script )
549
549
exitcode , stdout , stderr = assert_python_failure (script_name )
550
550
text = stderr .decode ('ascii' ).split ('\n ' )
551
- self .assertEqual (len (text ), 5 )
551
+ self .assertEqual (len (text ), 6 )
552
552
self .assertTrue (text [0 ].startswith ('Traceback' ))
553
553
self .assertTrue (text [1 ].startswith (' File ' ))
554
- self .assertTrue (text [3 ].startswith ('NameError' ))
554
+ self .assertTrue (text [4 ].startswith ('NameError' ))
555
555
556
556
def test_non_ascii (self ):
557
557
# Mac OS X denies the creation of a file with an invalid UTF-8 name.
You can’t perform that action at this time.
0 commit comments