aa5da1b312
After reading https://pyyaml.org/wiki/PyYAMLDocumentation again, turns out Loader.add_constructor and .add_implicit_resolver are actually *class* methods. In other words, we've been adding dozens of constructors/resolvers to the default YAML loader object, causing it to slow down massively in other tests which call configdata.init(). Instead, create our own loader class and only add them once there. I'm still not sure why this caused the duration to increase with every YAML load though - that might still be some kind of bug in PyYAML. Fixes #2777 |
||
---|---|---|
.. | ||
quteprocess.py | ||
test_quteprocess.py | ||
test_testprocess.py | ||
test_webserver.py | ||
testprocess.py | ||
webserver_sub_ssl.py | ||
webserver_sub.py | ||
webserver.py |