File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
33import pytest
44
5+ import sphinx
6+
57pytest_plugins = 'sphinx.testing.fixtures'
68
79
810@pytest .fixture (scope = 'session' )
911def rootdir ():
12+ if sphinx .version_info [:2 ] < (7 , 2 ):
13+ from sphinx .testing .path import path
14+
15+ return path (__file__ ).parent .abspath () / 'roots'
16+
1017 return Path (__file__ ).resolve ().parent / 'roots'
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ def check_localization(outdir):
3131 confoverrides = {'applehelp_bundle_id' : 'org.sphinx-doc.Sphinx.help' ,
3232 'applehelp_disable_external_tools' : True })
3333def test_applehelp_output (app , status , warning ):
34- (app .srcdir / 'en.lproj' ).mkdir (parents = True , exist_ok = True )
35- (app .srcdir / 'en.lproj' / 'localized.txt' ).touch ()
34+ LPROJ_DIR = Path (app .srcdir / 'en.lproj' )
35+ LPROJ_DIR .mkdir (parents = True , exist_ok = True )
36+ LPROJ_DIR .joinpath ('localized.txt' ).touch ()
3637 app .builder .build_all ()
3738
3839 # Have to use bundle_path, not outdir, because we alter the latter
You can’t perform that action at this time.
0 commit comments