awslabs / aws-cfn-template-flip

Tool for converting AWS CloudFormation templates between JSON and YAML formats.
Apache License 2.0
994 stars 142 forks source link

ODict not working properly after deep copied #89

Closed bachew closed 4 years ago

bachew commented 4 years ago

I created a pull request for this bug, basically the following test failed before the fix:

def test_post_deepcopy_repr():
    dct = ODict([("a", 1)])
    dct2 = deepcopy(dct)
    assert repr(dct) == repr(dct2)
    dct2["b"] = 2
    assert repr(dct) != repr(dct2)
koiker commented 4 years ago

Thanks for your PR!

I've merged your changes and as soon as @stilvoid review them he will publish the new version of the package.