From 210705ff952cac9584e4fb80335015a66bcc321f Mon Sep 17 00:00:00 2001 From: Patrick Liu <32678320+patrick-csliu@users.noreply.github.com> Date: Sat, 21 Oct 2023 02:24:49 +0800 Subject: [PATCH] Remove extra closing parenthesis (#2651) --- src/virtualenv/activation/python/activate_this.py | 2 +- tests/unit/activation/test_python_activator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtualenv/activation/python/activate_this.py b/src/virtualenv/activation/python/activate_this.py index 33a3eaee8..8066af11e 100644 --- a/src/virtualenv/activation/python/activate_this.py +++ b/src/virtualenv/activation/python/activate_this.py @@ -14,7 +14,7 @@ try: abs_file = os.path.abspath(__file__) except NameError as exc: - msg = "You must use exec(open(this_file).read(), {'__file__': this_file}))" + msg = "You must use exec(open(this_file).read(), {'__file__': this_file})" raise AssertionError(msg) from exc bin_dir = os.path.dirname(abs_file) diff --git a/tests/unit/activation/test_python_activator.py b/tests/unit/activation/test_python_activator.py index f773f74a6..3da4331b1 100644 --- a/tests/unit/activation/test_python_activator.py +++ b/tests/unit/activation/test_python_activator.py @@ -18,7 +18,7 @@ def __init__(self, session) -> None: sys.executable, activate_script="activate_this.py", extension="py", - non_source_fail_message="You must use exec(open(this_file).read(), {'__file__': this_file}))", + non_source_fail_message="You must use exec(open(this_file).read(), {'__file__': this_file})", ) self.unix_line_ending = not IS_WIN