Home
last modified time | relevance | path

Searched refs:assertWarns (Results 1 – 25 of 61) sorted by relevance

123

/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1239 with self.assertWarns(DeprecationWarning):
1312 with self.assertWarns(DeprecationWarning):
1394 self.assertWarns(RuntimeWarning, _runtime_warn)
1395 self.assertWarns(RuntimeWarning, _runtime_warn)
1397 self.assertWarns((DeprecationWarning, RuntimeWarning), _runtime_warn)
1399 self.assertWarns(RuntimeWarning,
1403 self.assertWarns(RuntimeWarning, lambda: 0)
1405 with self.assertWarns(DeprecationWarning):
1406 self.assertWarns(RuntimeWarning, None)
1412 self.assertWarns(DeprecationWarning, _runtime_warn)
[all …]
/external/python/cpython3/Lib/test/
Dtest_plistlib.py582 with self.assertWarns(DeprecationWarning):
585 with self.assertWarns(DeprecationWarning):
593 with self.assertWarns(DeprecationWarning):
597 with self.assertWarns(DeprecationWarning):
611 with self.assertWarns(DeprecationWarning):
614 with self.assertWarns(DeprecationWarning):
627 with self.assertWarns(DeprecationWarning):
645 with self.assertWarns(DeprecationWarning):
Dtest_coroutines.py2097 with self.assertWarns(DeprecationWarning):
2100 with self.assertWarns(DeprecationWarning):
2102 with self.assertWarns(DeprecationWarning):
2110 with self.assertWarns(DeprecationWarning):
2114 with self.assertWarns(DeprecationWarning):
2123 with self.assertWarns(DeprecationWarning):
2126 with self.assertWarns(DeprecationWarning):
2128 with self.assertWarns(DeprecationWarning):
2140 with self.assertWarns(DeprecationWarning):
2151 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_grp.py103 self.assertWarns(DeprecationWarning, grp.getgrgid, float(gid))
104 self.assertWarns(DeprecationWarning, grp.getgrgid, str(gid))
Dtest_getargs2.py140 with self.assertWarns(DeprecationWarning):
159 with self.assertWarns(DeprecationWarning):
178 with self.assertWarns(DeprecationWarning):
198 with self.assertWarns(DeprecationWarning):
239 with self.assertWarns(DeprecationWarning):
258 with self.assertWarns(DeprecationWarning):
277 with self.assertWarns(DeprecationWarning):
319 with self.assertWarns(DeprecationWarning):
364 with self.assertWarns(DeprecationWarning):
396 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_re.py913 with self.assertWarns(FutureWarning):
917 with self.assertWarns(FutureWarning):
920 with self.assertWarns(FutureWarning):
924 with self.assertWarns(FutureWarning):
927 with self.assertWarns(FutureWarning):
932 with self.assertWarns(FutureWarning):
935 with self.assertWarns(FutureWarning):
940 with self.assertWarns(FutureWarning):
943 with self.assertWarns(FutureWarning):
948 with self.assertWarns(FutureWarning):
[all …]
Dtest_symtable.py174 with self.assertWarns(DeprecationWarning), \
177 with self.assertWarns(DeprecationWarning):
Dtest_string_literals.py112 with self.assertWarns(DeprecationWarning):
161 with self.assertWarns(DeprecationWarning):
Dtest_int.py453 with self.assertWarns(DeprecationWarning):
459 with self.assertWarns(DeprecationWarning):
465 with self.assertWarns(DeprecationWarning):
Dtest_aifc.py311 with self.assertWarns(UserWarning) as cm:
323 with self.assertWarns(UserWarning) as cm:
334 with self.assertWarns(UserWarning) as cm:
Dtest_gettext.py447 with self.assertWarns(DeprecationWarning):
449 with self.assertWarns(DeprecationWarning):
451 with self.assertWarns(DeprecationWarning):
Dtest_mailcap.py91 with self.assertWarns(DeprecationWarning):
Dtest_platform.py404 with self.assertWarns(DeprecationWarning) as cm:
411 with self.assertWarns(DeprecationWarning) as cm:
Dtest_codecs.py1213 with self.assertWarns(DeprecationWarning):
1215 with self.assertWarns(DeprecationWarning):
1217 with self.assertWarns(DeprecationWarning):
1219 with self.assertWarns(DeprecationWarning):
1221 with self.assertWarns(DeprecationWarning):
2485 with self.assertWarns(DeprecationWarning):
2488 with self.assertWarns(DeprecationWarning):
2490 with self.assertWarns(DeprecationWarning):
2492 with self.assertWarns(DeprecationWarning):
2494 with self.assertWarns(DeprecationWarning):
Dtest_getpass.py155 with self.assertWarns(getpass.GetPassWarning):
Dtest_urllibnet.py97 with self.assertWarns(DeprecationWarning):
Dtest_enum.py344 with self.assertWarns(DeprecationWarning):
346 with self.assertWarns(DeprecationWarning):
2168 with self.assertWarns(DeprecationWarning):
2170 with self.assertWarns(DeprecationWarning):
2172 with self.assertWarns(DeprecationWarning):
2174 with self.assertWarns(DeprecationWarning):
2620 with self.assertWarns(DeprecationWarning):
2622 with self.assertWarns(DeprecationWarning):
2624 with self.assertWarns(DeprecationWarning):
2626 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_float.py203 with self.assertWarns(DeprecationWarning):
217 with self.assertWarns(DeprecationWarning):
219 with self.assertWarns(DeprecationWarning):
221 with self.assertWarns(DeprecationWarning):
223 with self.assertWarns(DeprecationWarning):
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest___package__.py60 with self.assertWarns(ImportWarning):
78 with self.assertWarns(ImportWarning):
/external/python/dateutil/dateutil/test/
Dtest_relativedelta.py356 with self.assertWarns(DeprecationWarning):
359 with self.assertWarns(DeprecationWarning):
362 with self.assertWarns(DeprecationWarning):
365 with self.assertWarns(DeprecationWarning):
368 with self.assertWarns(DeprecationWarning):
371 with self.assertWarns(DeprecationWarning):
374 with self.assertWarns(DeprecationWarning):
D_common.py48 def assertWarns(self, warning, callable=None, *args, **kwargs): member in WarningTestMixin
/external/python/cpython3/Lib/test/test_importlib/
Dtest_abc.py160 with self.assertWarns(DeprecationWarning):
185 with self.assertWarns(DeprecationWarning):
364 with self.assertWarns(DeprecationWarning):
374 with self.assertWarns(DeprecationWarning):
400 with self.assertWarns(DeprecationWarning):
410 with self.assertWarns(DeprecationWarning):
419 with self.assertWarns(DeprecationWarning):
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_locks.py45 with self.assertWarns(DeprecationWarning):
57 with self.assertWarns(DeprecationWarning):
82 with self.assertWarns(DeprecationWarning):
291 with self.assertWarns(DeprecationWarning):
304 with self.assertWarns(DeprecationWarning):
774 with self.assertWarns(DeprecationWarning):
871 with self.assertWarns(DeprecationWarning):
1014 with self.assertWarns(DeprecationWarning):
Dtest_pep492.py75 with self.assertWarns(DeprecationWarning):
/external/python/cpython3/Lib/distutils/tests/
Dtest_sysconfig.py154 self.assertWarns(DeprecationWarning,

123