summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-04-26 17:04:48 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-04-26 17:24:02 +0100
commit720f89d1d60dc06752d65278da8a99131f3465d5 (patch)
treeb3a415c5f3483ec6afff8d07734f606a3eafa099
parentbc04444cb815f99d2bc18ab11aefa6f29090d7af (diff)
downloadsphinx-git-720f89d1d60dc06752d65278da8a99131f3465d5.tar.gz
Update test for Alabaster version tuple
-rw-r--r--tests/test_theming.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_theming.py b/tests/test_theming.py
index 0efebb257..579289988 100644
--- a/tests/test_theming.py
+++ b/tests/test_theming.py
@@ -18,7 +18,11 @@ def test_theme_api(app, status, warning):
themes = ['basic', 'default', 'scrolls', 'agogo', 'sphinxdoc', 'haiku',
'traditional', 'epub', 'nature', 'pyramid', 'bizstyle', 'classic', 'nonav',
'test-theme', 'ziptheme', 'staticfiles', 'parent', 'child']
- if alabaster.version.__version_info__ >= (0, 7, 11):
+ try:
+ alabaster_version = alabaster.__version_info__
+ except AttributeError:
+ alabaster_version = alabaster.version.__version_info__
+ if alabaster_version >= (0, 7, 11):
themes.append('alabaster')
# test Theme class API