Changeset f7e47b5 in mod_gnutls
- Timestamp:
- Jan 3, 2020, 6:06:54 AM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- 63e4efe
- Parents:
- 0699668
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
r0699668 rf7e47b5 1 1 #!/usr/bin/python3 2 2 3 # Copyright 2019 Fiona Klute3 # Copyright 2019-2020 Fiona Klute 4 4 # 5 5 # Licensed under the Apache License, Version 2.0 (the "License"); … … 106 106 107 107 @classmethod 108 def _from_yaml(cls, loader, node):108 def from_yaml(cls, loader, node): 109 109 fields = loader.construct_mapping(node) 110 110 conn = cls(**fields) … … 230 230 231 231 @classmethod 232 def _from_yaml(cls, loader, node):232 def from_yaml(cls, loader, node): 233 233 fields = loader.construct_mapping(node) 234 234 req = cls(**fields) … … 303 303 if 'body' in self.expect: 304 304 self.check_body(body) 305 306 307 308 # Override the default constructors. Pyyaml ignores default parameters309 # otherwise.310 yaml.add_constructor('!request', TestRequest._from_yaml, yaml.Loader)311 yaml.add_constructor('!request10', TestReq10._from_yaml, yaml.Loader)312 yaml.add_constructor('!connection', TestConnection._from_yaml, yaml.Loader)313 305 314 306
Note: See TracChangeset
for help on using the changeset viewer.