Skip to content

Commit 6347121

Browse files
committed
fix tox -e mypy tests
1 parent bbe9769 commit 6347121

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mypy.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
strict_equality = True
1818
strict_optional = True
1919
no_implicit_optional = True
20-
no_implicit_reexport = True
20+
no_implicit_reexport = True
21+
# https://mypy.readthedocs.io/en/stable/running_mypy.html#follow-imports
22+
follow_imports = silent

opentelemetry-api/tests/context/base_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_attach(self):
6464
self.assertEqual("yyy", context.get_value("a"))
6565

6666
with self.assertLogs(level=ERROR):
67-
context.detach("some garbage")
67+
context.detach(token)
6868

6969
def test_detach_out_of_order(self):
7070
t1 = context.attach(context.set_value("c", 1))

0 commit comments

Comments
 (0)