Skip to content

[SNMP][tests] open files in 'wb' mode when serialising yaml#10044

Merged
gmarabout merged 1 commit into
masterfrom
gmarabout/snmp_fix_unit_tests
Sep 3, 2021
Merged

[SNMP][tests] open files in 'wb' mode when serialising yaml#10044
gmarabout merged 1 commit into
masterfrom
gmarabout/snmp_fix_unit_tests

Conversation

@gmarabout

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix unit tests that are failing since this commit: b1b9ace

This PR will make sure to open files in "wb" mode so that the yaml lib can serialize Yaml even if we use the C safeloader in tests.

Motivation

Repair failing tests.

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@codecov

codecov Bot commented Sep 3, 2021

Copy link
Copy Markdown

Codecov Report

Merging #10044 (e211514) into master (991f089) will increase coverage by 0.00%.
The diff coverage is 83.33%.

Flag Coverage Δ
snmp 91.18% <83.33%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@gmarabout
gmarabout merged commit f812d0c into master Sep 3, 2021
@gmarabout
gmarabout deleted the gmarabout/snmp_fix_unit_tests branch September 3, 2021 13:04
@hithwen hithwen mentioned this pull request Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants