Skip to content

Commit ee63376

Browse files
committed
more tests
1 parent 09bb38b commit ee63376

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

eng/tox/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ deps =
117117
PyGitHub>=1.59.0
118118
commands =
119119
python -m pip install pylint=={[testenv:next-pylint]pylint_version}
120-
python -m pip install azure-pylint-guidelines-checker==0.5.2 --index-url="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
120+
python -m pip install {repository_root}/../azure-sdk-tools/tools/pylint-extensions/azure-pylint-guidelines-checker -e .
121121
python {repository_root}/eng/tox/create_package_and_install.py \
122122
-d {envtmpdir}/dist \
123123
-p {tox_root} \
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
import logging
6+
7+
# This code violates do-not-log-exceptions-if-not-debug
8+
9+
try:
10+
a = "this is doing something here"
11+
except TypeError as e:
12+
logging.info(
13+
"This is a TypeError: %s",
14+
e,
15+
)
16+
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
import logging
6+
7+
# This code violates do-not-log-raised-errors
8+
9+
try:
10+
a = "this is doing something here"
11+
except TypeError as e:
12+
logging.debug(
13+
"This is a TypeError: %s",
14+
e,
15+
)
16+
raise e
17+

0 commit comments

Comments
 (0)