From ade17cfd8dd1a12d6babceb24126511ddab1085a Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 24 Apr 2024 22:13:10 +0200 Subject: [PATCH] Add missing space in error message Fixes: #1464 Change-Id: I9dd5a6c48c685d347ffa35f12afb79845c347003 --- alembic/script/base.py | 2 +- tests/test_script_production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alembic/script/base.py b/alembic/script/base.py index 66564781..9a955b6b 100644 --- a/alembic/script/base.py +++ b/alembic/script/base.py @@ -609,7 +609,7 @@ def _generate_create_date(self) -> datetime.datetime: if self.timezone is not None: if ZoneInfo is None: raise util.CommandError( - "Python >= 3.9 is required for timezone support or" + "Python >= 3.9 is required for timezone support or " "the 'backports.zoneinfo' package must be installed." ) # First, assume correct capitalization diff --git a/tests/test_script_production.py b/tests/test_script_production.py index 7b7db814..a6618be2 100644 --- a/tests/test_script_production.py +++ b/tests/test_script_production.py @@ -297,7 +297,7 @@ def test_no_zoneinfo_module(self): with patch("alembic.script.base.ZoneInfo", new=None): with expect_raises_message( CommandError, - "Python >= 3.9 is required for timezone support or" + "Python >= 3.9 is required for timezone support or " "the 'backports.zoneinfo' package must be installed.", ): self._test_tz(