Skip to content

Commit 133241a

Browse files
committed
Pin upstream version of opentelemetry when running tests
Fix in GoogleCloudPlatform#254 didn't apply to tox environments that run `pip install .` `test_detects_gce` was failing with opentelemetry-sdk version 1.19.0 instead of 1.18.0
1 parent 8f8d2f0 commit 133241a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tox.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ passenv = SKIP_GET_MOCK_SERVER
6565
changedir = {env:PACKAGE_NAME}
6666

6767
commands_pre =
68-
pip install .
68+
pip install -c {toxinidir}/dev-constraints.txt .
6969
{toxinidir}/get_mock_server.sh {envbindir}
7070

7171
commands = pytest --junitxml={[constants]test_results_dir}/{envname}/junit.xml {posargs}
7272

73-
whitelist_externals = bash
73+
allowlist_externals =
74+
bash
75+
{toxinidir}/get_mock_server.sh
7476

7577
[testenv:{lint,mypy}-ci-{cloudtrace,cloudmonitoring,propagator,resourcedetector}]
7678
basepython = {[constants]dev_basepython}
@@ -98,7 +100,7 @@ deps =
98100
commands =
99101
make -C docs/ clean html
100102

101-
whitelist_externals =
103+
allowlist_externals =
102104
make
103105
bash
104106

0 commit comments

Comments
 (0)