`pyproject.toml` says that Python 3.8 is supported, but tests fail
envgap__adrienverge__yamllint-717
01 / FAILURE SIGNATURE
As reported upstream
<pre><samp>............................................................................................................................................................................................................................E.EEEEEEEE.EEEEEEEEEE..E..E.EEEEE............../home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py:512: ResourceWarning: unclosed file <_io.TextIOWrapper name=4 mode='w' encoding='ANSI_X3.4-1968'>
 sys.stdout = StringIO()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
EEEEEEE........................FTraceback (most recent call last):
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 194, in _run_module_as_main
 return _run_code(code, main_globals, None,
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 87, in _run_code
 exec(code, run_globals)
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/__main__.py", line 19, in <module>
 run()
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'
FTraceback (most recent call last):
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 194, in _run_module_as_main
 return _run_code(code, main_globals, None,
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 87, in _run_code
 exec(code, run_globals)
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/__main__.py", line 19, in <module>
 run()
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repNot a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
fb7fc98f88be3054f96838a54473796c2534cc25- Manifest
pyproject.toml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
adrienverge/yamllint #717 · read the original issue
## Steps to reproduce
1. Make sure that you have Python 3.8 installed by running this command:
```
python3.8 --version
```
1. Make sure that you have a copy of the yamllint repo on your computer.
1. Set up a new virtual environment by doing the following:
1. Create the virtual environment by running this command:
```
python3.8 -m venv venv
```
1. Activate the virtual environment by running this command:
```
source venv/bin/activate
```
1. _(Recommended)_ Update pip by running this command:
```
python -m pip install --upgrade pip
```
1. _(Recommended)_ Update the rest of the packages that are preinstalled in the virtual environment by running this command:
```
pip install --upgrade setuptools
```
1. Change directory into the root of your clone of the yamllint repo by running this command:
```
cd <path-to-yamllint-repo>
```
1. Install yamllint by running this command:
```
pip install .
```
1. Try to run the tests by running this command:
```
python -m unittest discover
```
## Actual results
<details>
<summary>Log</summary>
<pre><samp>............................................................................................................................................................................................................................E.EEEEEEEE.EEEEEEEEEE..E..E.EEEEE............../home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py:512: ResourceWarning: unclosed file <_io.TextIOWrapper name=4 mode='w' encoding='ANSI_X3.4-1968'>
 sys.stdout = StringIO()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
EEEEEEE........................FTraceback (most recent call last):
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 194, in _run_module_as_main
 return _run_code(code, main_globals, None,
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 87, in _run_code
 exec(code, run_globals)
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/__main__.py", line 19, in <module>
 run()
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'
FTraceback (most recent call last):
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 194, in _run_module_as_main
 return _run_code(code, main_globals, None,
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 87, in _run_code
 exec(code, run_globals)
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/__main__.py", line 19, in <module>
 run()
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'
E.................................................................................................................
======================================================================
ERROR: test_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 744, in test_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint.yml]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 744, in test_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint.yaml]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 744, in test_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_multiple_parent_config_file (tests.test_cli.CommandLineConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 803, in test_multiple_parent_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_parent_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 767, in test_parent_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_parent_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint.yml]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 767, in test_parent_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_parent_config_file (tests.test_cli.CommandLineConfigTestCase) [.yamllint.yaml]
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 767, in test_parent_config_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_github_actions_detection (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 608, in test_github_actions_detection
 cli.run((path, ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_auto_output_without_tty_output (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 546, in test_run_auto_output_without_tty_output
 cli.run((path, '--format', 'auto'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_default_format_output_in_tty (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 505, in test_run_default_format_output_in_tty
 cli.run((path, ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_default_format_output_without_tty (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 532, in test_run_default_format_output_without_tty
 cli.run((path, ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_empty_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 459, in test_run_empty_file
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_format_colored (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 560, in test_run_format_colored
 cli.run((path, '--format', 'colored'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_format_colored_warning (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 576, in test_run_format_colored_warning
 cli.run((path, '--format', 'colored'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_format_github (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 589, in test_run_format_github
 cli.run((path, '--format', 'github'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_multiple_files (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 478, in test_run_multiple_files
 cli.run(['-f', 'parsable'] + items)
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_no_warnings (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 639, in test_run_no_warnings
 cli.run((path, '--no-warnings', '-f', 'auto'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_no_warnings_and_strict (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 659, in test_run_no_warnings_and_strict
 cli.run((path, '--no-warnings', '-s'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_non_ascii_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 469, in test_run_non_ascii_file
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_non_existing_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 417, in test_run_non_existing_file
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_non_universal_newline (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 666, in test_run_non_universal_newline
 cli.run(('-d', 'rules:\n new-lines:\n type: dos', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_one_ok_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 452, in test_run_one_ok_file
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_one_problem_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 426, in test_run_one_problem_file
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_one_warning (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 438, in test_run_one_warning
 cli.run(('-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_piped_output_nocolor (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 488, in test_run_piped_output_nocolor
 cli.run((path, ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_warning_in_strict_mode (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 445, in test_run_warning_in_strict_mode
 cli.run(('-f', 'parsable', '--strict', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_config_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 302, in test_run_with_config_file
 cli.run(('-c', f.name, os.path.join(self.wd, 'a.yaml')))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_implicit_extends_config (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 291, in test_run_with_implicit_extends_config
 cli.run(('-d', 'default', '-f', 'parsable', path))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_locale (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 379, in test_run_with_locale
 cli.run(('-d', 'rules: { key-ordering: enable }',
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_user_global_config_file (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 325, in test_run_with_user_global_config_file
 cli.run((os.path.join(self.wd, 'a.yaml'), ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_user_xdg_config_home_in_env (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 344, in test_run_with_user_xdg_config_home_in_env
 cli.run(('-f', 'parsable', os.path.join(self.wd, 'warn.yaml')))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_user_yamllint_config_file_in_env (tests.test_cli.CommandLineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_cli.py", line 356, in test_run_with_user_yamllint_config_file_in_env
 cli.run((os.path.join(self.wd, 'a.yaml'), ))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_no_ignore (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 514, in test_no_ignore
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignore_from_file (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 685, in test_run_with_ignore_from_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignore_list (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 631, in test_run_with_ignore_list
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignore_on_ignored_file (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 817, in test_run_with_ignore_on_ignored_file
 cli.run(('-f', 'parsable', 'file.dont-lint-me.yaml',
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignore_str (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 577, in test_run_with_ignore_str
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignore_with_broken_symlink (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 787, in test_run_with_ignore_with_broken_symlink
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_with_ignored_from_file (tests.test_config.IgnoreConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_config.py", line 736, in test_run_with_ignored_from_file
 cli.run(('-f', 'parsable', '.'))
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run
 filepath = file.removeprefix('./')
AttributeError: 'str' object has no attribute 'removeprefix'

======================================================================
ERROR: test_run_module_on_file (tests.test_module.ModuleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_module.py", line 59, in test_run_module_on_file
 out = subprocess.check_output(
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/subprocess.py", line 415, in check_output
 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/subprocess.py", line 516, in run
 raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/venv/bin/python', '-m', 'yamllint', '/tmp/nix-shell-27893-0/yamllint-tests-6dsb708x/warn.yaml']' returned non-zero exit status 1.

======================================================================
FAIL: test_run_module_on_bad_dir (tests.test_module.ModuleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_module.py", line 55, in test_run_module_on_bad_dir
 self.assertRegex(ctx.exception.output.decode(),
AssertionError: Regex didn't match: 'No such file or directory' not found in 'Traceback (most recent call last):\n File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 194, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File "/nix/store/1l37zfwdyw89k80cbip1rsyhqa91xgn8-python3-3.8.18/lib/python3.8/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/__main__.py", line 19, in <module>\n run()\n File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/yamllint/cli.py", line 220, in run\n filepath = file.removeprefix(\'./\')\nAttributeError: \'str\' object has no attribute \'removeprefix\'\n'

======================================================================
FAIL: test_run_module_on_dir (tests.test_module.ModuleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/jayman/Documents/Home/VC/Git/Partially mine/yamllint/repo/tests/test_module.py", line 73, in test_run_module_on_dir
 self.assertIn(
AssertionError: '/warn.yaml\n 1:1 warning missing document start "---" (document-start)' not found in ''

----------------------------------------------------------------------
Ran 416 tests in 6.885s

FAILED (failures=2, errors=40)
</samp></pre>
</details>
## Expected results
Either the tests should pass, or pip should tell you that the package requires a higher version of Python. `pyproject.toml` shouldn’t say that Python 3.8 is supported if it’s not actually supported.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]