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:
Patrick Kanzler 2017-10-08 20:31:59 +02:00
parent 456f5b7aa6
commit 44f01a212b
1 changed files with 1 additions and 1 deletions

View File

@ -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)