This repository was archived by the owner on Sep 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- try :
16- import mock
17- except ImportError :
18- from unittest import mock
19-
2015import os
2116import unittest
2217
18+ import mock
19+
2320from opencensus .common .monitored_resource import k8s_utils
2421
2522
Original file line number Diff line number Diff line change 1616import os
1717import sys
1818
19+ import mock
20+
1921from opencensus .common .monitored_resource import monitored_resource
2022
2123if sys .version_info < (3 ,):
2224 import unittest2 as unittest
23- import mock
2425else :
2526 import unittest
26- from unittest import mock
2727
2828
2929@contextmanager
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- try :
18- import mock
19- except ImportError :
20- from unittest import mock
21-
2217import os
2318import unittest
2419
20+ import mock
21+
2522from opencensus .common import resource as resource_module
2623from opencensus .common .resource import Resource
2724
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import sys
1615from contextlib import contextmanager
1716import logging
17+ import sys
18+
19+ import mock
1820
1921from opencensus import log
2022
2123if sys .version_info < (3 ,):
2224 import unittest2 as unittest
23- import mock
2425else :
2526 import unittest
26- from unittest import mock
2727
2828
2929@contextmanager
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- try :
16- import mock
17- except ImportError :
18- from unittest import mock
19-
2015import datetime
2116import unittest
2217
18+ import mock
19+
2320from opencensus .metrics .export import metric_descriptor
2421from opencensus .metrics .export import point
2522from opencensus .metrics .export import value
You can’t perform that action at this time.
0 commit comments