Home
last modified time | relevance | path

Searched refs:MyPolicy (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/test_email/
Dtest_parser.py16 MyPolicy = TestEmailBase.policy.clone(linesep='boo') variable in TestCustomMessage
21 policy=self.MyPolicy)
23 self.assertIs(msg.check_policy, self.MyPolicy)
29 policy=self.MyPolicy)
31 self.assertIs(msg.check_policy, self.MyPolicy)
76 MyPolicy = default.clone(message_factory=self.MyMessage)
77 msg = parser("To: foo\n\ntest", policy=MyPolicy)
83 MyPolicy = default.clone(message_factory=self.MyMessage)
84 msg = parser("To: foo\n\ntest", Message, policy=MyPolicy)
Dtest_policy.py185 class MyPolicy(email.policy.EmailPolicy): class in PolicyAPITests
196 self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)
201 my_policy = self.MyPolicy()
293 class MyPolicy(email.policy.Policy): class in TestPolicyPropagation
302 policy=self.MyPolicy)
307 policy=self.MyPolicy)
312 email.message_from_file(f, policy=self.MyPolicy)
317 email.message_from_binary_file(f, policy=self.MyPolicy)
322 p = email.parser.Parser(policy=self.MyPolicy)
327 p = email.parser.BytesParser(policy=self.MyPolicy)
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Dpolicy_test.py264 class MyPolicy(mp_policy.Policy): class
271 MyPolicy('float32')
277 custom_objects={'MyPolicy': MyPolicy})