Attempt to fix path names on Windows.

pull/20/head
Eric Holscher 9 years ago
parent f6dfa01363
commit 220599c22f

@ -180,7 +180,7 @@ class DotNetSphinxMapper(SphinxMapperBase):
filename = obj.name.split('(')[0]
except IndexError:
filename = id
filename = filename.replace('#', '-')
filename = filename.replace('#', '-').replace('<', '-').replace('>', '')
detail_dir = os.path.join(root, *filename.split('.'))
ensuredir(detail_dir)
path = os.path.join(detail_dir, '%s%s' % ('index', source_suffix))

@ -89,7 +89,7 @@ class DotNetTests(LanguageIntegrationTests):
def test_integration(self):
self._run_test(
'dotnetexample',
'_build/text/autoapi/Microsoft/AspNet/JsonPatch/Adapters/IObjectAdapter<TModel>/index.txt',
'_build/text/autoapi/Microsoft/AspNet/JsonPatch/Adapters/IObjectAdapter-TModel/index.txt',
'Defines the operations that can be performed on a JSON patch document.'
)

Loading…
Cancel
Save