1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

Fix deprecation warnings

This commit is contained in:
Luiz Menezes
2019-04-06 00:37:36 -03:00
parent 114fcd29b4
commit 1b474c0510
2 changed files with 9 additions and 5 deletions

View File

@@ -22,9 +22,9 @@ def test_try_migrate_with_yaml(tmpdir):
shutil.copy('tests/fixtures/migration/old_cassette.yaml', cassette)
assert vcr.migration.try_migrate(cassette)
with open('tests/fixtures/migration/new_cassette.yaml', 'r') as f:
expected_yaml = yaml.load(f)
expected_yaml = yaml.load(f, Loader=yaml.FullLoader)
with open(cassette, 'r') as f:
actual_yaml = yaml.load(f)
actual_yaml = yaml.load(f, Loader=yaml.FullLoader)
assert actual_yaml == expected_yaml