Skip to content

Commit

Permalink
Update test for Alabaster version tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Apr 26, 2023
1 parent bc04444 commit 720f89d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_theming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 720f89d

Please sign in to comment.