@@ -589,6 +589,7 @@ def extract_from_snapshots():
589589        'messages.py' : (),
590590        'fileloc.py' : ('--docstrings' ,),
591591        'docstrings.py' : ('--docstrings' ,),
592+         ('docstrings.py' , 'skipdocstrings.py' , 'docstrings.pot' ): ('--docstrings' , f'--no-docstrings={ DATA_DIR } { os .path .sep }  ),
592593        'comments.py' : ('--add-comments=i18n:' ,),
593594        'custom_keywords.py' : ('--keyword=foo' , '--keyword=nfoo:1,2' ,
594595                               '--keyword=pfoo:1c,2' ,
@@ -606,18 +607,20 @@ def extract_from_snapshots():
606607
607608    for  filename , args  in  snapshots .items ():
608609        if  isinstance (filename , tuple ):
609-             filename , output_file  =  filename 
610+             * filenames , output_file  =  filename 
610611            output_file  =  DATA_DIR  /  output_file 
611-             input_file  =  DATA_DIR  /  filename 
612+             input_files  =  [ DATA_DIR  /  file   for   file   in   filenames ] 
612613        else :
613-             input_file  =  DATA_DIR  /  filename 
614-             output_file  =  input_file .with_suffix ('.pot' )
615-          contents   =   input_file . read_bytes () 
614+             input_files  =  [ DATA_DIR  /  filename ] 
615+             output_file  =  input_files [ 0 ] .with_suffix ('.pot' )
616+ 
616617        with  temp_cwd (None ):
617-             Path (input_file .name ).write_bytes (contents )
618+             for  input_file  in  input_files :
619+                 contents  =  input_file .read_bytes ()
620+                 Path (input_file .name ).write_bytes (contents )
618621            assert_python_ok ('-Xutf8' , Test_pygettext .script , * args ,
619-                              input_file .name )
620-             yield  (input_file , output_file ,
622+                              * [ file .name   for   file   in   input_files ] )
623+             yield  (input_files , output_file ,
621624                   Path ('messages.pot' ).read_text (encoding = 'utf-8' ))
622625
623626
0 commit comments