diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 23328431a7aad8..7cccbe84f4ebfa 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -623,8 +623,9 @@ def test_activate_shell_script_has_no_dos_newlines(self): script_path = venv_dir / scripts_dir / "activate" venv.create(venv_dir) with open(script_path, 'rb') as script: - for line in script: - self.assertFalse(line.endswith(b'\r\n'), line) + for i, line in enumerate(script, 1): + error_message = f"CR LF found in line {i}" + self.assertFalse(line.endswith(b'\r\n'), error_message) @requireVenvCreate class EnsurePipTest(BaseTest): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy