Skip to content

Commit c1a51fd

Browse files
authored
Pre Python 3.12 enablement fixes (#2529)
1 parent 78285a5 commit c1a51fd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

instrumentation/opentelemetry-instrumentation-botocore/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jsonschema==4.21.1
2828
jsonschema-specifications==2023.12.1
2929
junit-xml==1.9
3030
MarkupSafe==2.0.1
31-
moto==2.2.20
31+
moto==3.1.19
3232
mpmath==1.3.0
3333
networkx==3.1
3434
packaging==23.2

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_dynamodb.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,14 @@ def test_get_item(self):
324324
Key={"id": {"S": "1"}},
325325
ConsistentRead=True,
326326
AttributesToGet=["id"],
327-
ProjectionExpression="1,2",
327+
ProjectionExpression="PE",
328328
ReturnConsumedCapacity="TOTAL",
329329
)
330330

331331
span = self.assert_span("GetItem")
332332
self.assert_table_names(span, self.default_table_name)
333333
self.assert_consistent_read(span, True)
334-
self.assert_projection(span, "1,2")
334+
self.assert_projection(span, "PE")
335335
self.assert_consumed_capacity(span, self.default_table_name)
336336

337337
@mock_dynamodb2
@@ -390,7 +390,7 @@ def test_query(self):
390390
}
391391
},
392392
ScanIndexForward=True,
393-
ProjectionExpression="1,2",
393+
ProjectionExpression="PE",
394394
ReturnConsumedCapacity="TOTAL",
395395
)
396396

@@ -403,7 +403,7 @@ def test_query(self):
403403
self.assert_consistent_read(span, True)
404404
self.assert_index_name(span, "lsi")
405405
self.assert_limit(span, 42)
406-
self.assert_projection(span, "1,2")
406+
self.assert_projection(span, "PE")
407407
self.assert_select(span, "ALL_ATTRIBUTES")
408408
self.assert_consumed_capacity(span, self.default_table_name)
409409

@@ -419,7 +419,7 @@ def test_scan(self):
419419
Select="ALL_ATTRIBUTES",
420420
TotalSegments=17,
421421
Segment=21,
422-
ProjectionExpression="1,2",
422+
ProjectionExpression="PE",
423423
ConsistentRead=True,
424424
ReturnConsumedCapacity="TOTAL",
425425
)
@@ -440,7 +440,7 @@ def test_scan(self):
440440
self.assert_consistent_read(span, True)
441441
self.assert_index_name(span, "lsi")
442442
self.assert_limit(span, 42)
443-
self.assert_projection(span, "1,2")
443+
self.assert_projection(span, "PE")
444444
self.assert_select(span, "ALL_ATTRIBUTES")
445445
self.assert_consumed_capacity(span, self.default_table_name)
446446

instrumentation/opentelemetry-instrumentation-pika/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def test_decorate_deque_proxy(
558558
self.assertEqual(res, evt)
559559
generator_info.pending_events.popleft.assert_called_once()
560560
extract.assert_not_called()
561-
context_get_current.not_called()
561+
context_get_current.assert_not_called()
562562
context_detach.assert_called_once()
563563
context_attach.assert_not_called()
564564
get_span.assert_not_called()

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,8 @@ deps =
11981198
-r dev-requirements.txt
11991199

12001200
commands =
1201-
black --config {toxinidir}/pyproject.toml {{toxinidir}} --diff --check
1202-
isort --settings-path {toxinidir}/.isort.cfg {{toxinidir}} --diff --check-only
1201+
black --config {toxinidir}/pyproject.toml {toxinidir} --diff --check
1202+
isort --settings-path {toxinidir}/.isort.cfg {toxinidir} --diff --check-only
12031203
flake8 --config {toxinidir}/.flake8 {toxinidir}
12041204

12051205
[testenv:spellcheck]

0 commit comments

Comments
 (0)