Skip to content

Commit

Permalink
🧪 TESTS: Fix regression output on 32-bit systems to match 64-bit syst…
Browse files Browse the repository at this point in the history
…ems (#523)

Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
  • Loading branch information
stefanor and chrisjsewell committed Apr 13, 2022
1 parent 5cc398f commit 8f53a0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_renderers/test_fixtures_sphinx.py
Expand Up @@ -3,6 +3,7 @@
Note, the output AST is before any transforms are applied.
"""
import re
import sys
from pathlib import Path

import pytest
Expand Down Expand Up @@ -50,6 +51,9 @@ def test_sphinx_directives(file_params):
document = to_docutils(file_params.content, in_sphinx_env=True).pformat()
# see https://github.com/sphinx-doc/sphinx/issues/9827
document = document.replace('<glossary sorted="False">', "<glossary>")
# see https://github.com/executablebooks/MyST-Parser/issues/522
if sys.maxsize == 2147483647:
document = document.replace('"2147483647"', '"9223372036854775807"')
file_params.assert_expected(document, rstrip_lines=True)


Expand Down

0 comments on commit 8f53a0b

Please sign in to comment.