Source

pyyaml / tests / data / serializer-is-not-opened-1.dumper-error

dumper = yaml.Dumper(StringIO())
dumper.close()