Solutions to errors reported by running pytest.ini configuration file

After creating the configuration file, the window executes pytest and reports the following error:


the essence of the error is that the code is abnormal and the utf8 format needs to be modified
solution: find iniconfig under the phthon installation path/_ Init.py file, add code encoding = ‘utf8’, as shown in the figure

Read More: