##// END OF EJS Templates
tests: get access to thirdparty.cbor without requiring it to be installed...
Augie Fackler -
r41195:a9905045 default
parent child Browse files
Show More
@@ -1,10 +1,19 b''
1 1 from __future__ import absolute_import
2 2
3 import os
4 import sys
3 5 import unittest
4 6
5 from mercurial.thirdparty import (
6 cbor,
7 )
7 # TODO migrate to canned cbor test strings and stop using thirdparty.cbor
8 tpp = os.path.normpath(os.path.join(os.path.dirname(__file__),
9 '..', 'mercurial', 'thirdparty'))
10 if not os.path.exists(tpp):
11 # skip, not in a repo
12 sys.exit(80)
13 sys.path[0:0] = [tpp]
14 import cbor
15 del sys.path[0]
16
8 17 from mercurial.utils import (
9 18 cborutil,
10 19 )
General Comments 0
You need to be logged in to leave comments. Login now