fix docs failing due to pickle protocol in mixed env
When executing a tox-run a pickle file will be created. If the docs are built after the py3 task, it will fail due to incompatible pickle-protocols. See https://stackoverflow.com/a/25843743/4244236 for reference.
This commit is contained in:
parent
456f5b7aa6
commit
44f01a212b
|
@ -38,7 +38,7 @@ if full_load:
|
|||
logger.debug('Loading and pickling capabilities')
|
||||
with open(capabilities_path) as cp, open(pickle_path, 'wb') as pp:
|
||||
CAPABILITIES = yaml.load(cp)
|
||||
pickle.dump(CAPABILITIES, pp)
|
||||
pickle.dump(CAPABILITIES, pp, protocol=2)
|
||||
|
||||
logger.debug('Finished loading capabilities took %.2fs', time.time() - t0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue