Submitter | phabricator |
---|---|
Date | Jan. 9, 2019, 11:08 p.m. |
Message ID | <ddd96727bc7a0e430128968385109c5d@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37597/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/tests/test-cbor.py b/tests/test-cbor.py --- a/tests/test-cbor.py +++ b/tests/test-cbor.py @@ -1,10 +1,19 @@ from __future__ import absolute_import +import os +import sys import unittest -from mercurial.thirdparty import ( - cbor, -) +# TODO migrate to canned cbor test strings and stop using thirdparty.cbor +tpp = os.path.normpath(os.path.join(os.path.dirname(__file__), + '..', 'mercurial', 'thirdparty')) +if not os.path.exists(tpp): + # skip, not in a repo + sys.exit(80) +sys.path[0:0] = [tpp] +import cbor +del sys.path[0] + from mercurial.utils import ( cborutil, )