Skip to content
Snippets Groups Projects
Commit 3811ced8 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed double instantiation of context.

parent 4802d6d8
No related branches found
No related tags found
No related merge requests found
......@@ -413,13 +413,14 @@ class TurbomoleParser():
logging.getLogger('nomadcore').setLevel(logging.WARNING)
backend = self.backend_factory(metaInfoEnv)
parserInfo = {'name': 'turbomole-parser', 'version': '1.0'}
context = TurbomoleParserContext()
with patch.object(sys, 'argv', ['<exe>', '--uri', 'nmd://uri', mainfile]):
mainFunction(
build_root_parser(TurbomoleParserContext()),
build_root_parser(context),
metaInfoEnv,
parserInfo,
cachingLevelForMetaName=dict(),
superContext=TurbomoleParserContext(),
superContext=context,
superBackend=backend)
return backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment