mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Pyyaml5.1 (#24529)
* Migrated to PyYAML 5.1 * More intelligent fixing of yaml safe_load Based on https://circleci.com/gh/home-assistant/home-assistant/34831?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
This commit is contained in:
committed by
Paulus Schoutsen
parent
970b00b8d6
commit
50d282ff37
@@ -400,7 +400,7 @@ def test_write_device():
|
||||
device = apns.ApnsDevice('123', 'name', 'track_id', True)
|
||||
|
||||
apns._write_device(out, device)
|
||||
data = yaml.load(out.getvalue())
|
||||
data = yaml.safe_load(out.getvalue())
|
||||
assert data == {
|
||||
123: {
|
||||
'name': 'name',
|
||||
|
||||
Reference in New Issue
Block a user