-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.p3This is a minor priority issueThis is a minor priority issue
Description
Describe the bug
The test_output_compliance
test does copy.deepcopy
on json_description
, but not on case
. This is despite both being shared among test function invocations and both being modified. This means that if the test gets parametrized, or is rerun due to pytest-rerunfailures
, or similar, the test fails.
botocore/tests/unit/test_protocols.py
Lines 197 to 206 in a4bd6ae
@pytest.mark.parametrize( | |
"json_description, case, basename", _compliance_tests(TestType.OUTPUT) | |
) | |
def test_output_compliance(json_description, case, basename): | |
service_description = copy.deepcopy(json_description) | |
operation_name = case.get('given', {}).get('name', 'OperationName') | |
service_description['operations'] = { | |
operation_name: case, | |
} | |
case['response']['context'] = {'operation_name': operation_name} |
Regression Issue
- Select this option if this issue appears to be a regression.
Possible Solution
Add
case = copy.deepcopy(case)
Additional Information/Context
This was noticed in aio-libs/aiobotocore#1085
jakob-keller
Metadata
Metadata
Assignees
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.p3This is a minor priority issueThis is a minor priority issue