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(