Home
last modified time | relevance | path

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

123

/third_party/python/Lib/test/
Dtest_getargs2.py163 with self.assertWarns(DeprecationWarning):
187 with self.assertWarns(DeprecationWarning):
211 with self.assertWarns(DeprecationWarning):
236 with self.assertWarns(DeprecationWarning):
287 with self.assertWarns(DeprecationWarning):
311 with self.assertWarns(DeprecationWarning):
335 with self.assertWarns(DeprecationWarning):
360 with self.assertWarns(DeprecationWarning):
388 with self.assertWarns(DeprecationWarning):
443 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_random.py51 with self.assertWarns(DeprecationWarning):
55 with self.assertWarns(DeprecationWarning):
113 with self.assertWarns(DeprecationWarning):
167 with self.assertWarns(DeprecationWarning):
517 self.assertWarns(DeprecationWarning, raises, 3.14159)
518 self.assertWarns(DeprecationWarning, self.gen.randrange, 3.0)
519 self.assertWarns(DeprecationWarning, self.gen.randrange, Fraction(3, 1))
520 self.assertWarns(DeprecationWarning, raises, '3')
521 self.assertWarns(DeprecationWarning, raises, 0, 2.71828)
522 self.assertWarns(DeprecationWarning, self.gen.randrange, 0, 2.0)
[all …]
Dtest_urlparse.py1267 with self.assertWarns(DeprecationWarning) as cm:
1274 with self.assertWarns(DeprecationWarning) as cm:
1281 with self.assertWarns(DeprecationWarning) as cm:
1288 with self.assertWarns(DeprecationWarning) as cm:
1295 with self.assertWarns(DeprecationWarning) as cm:
1302 with self.assertWarns(DeprecationWarning) as cm:
1309 with self.assertWarns(DeprecationWarning) as cm:
1316 with self.assertWarns(DeprecationWarning) as cm:
1323 with self.assertWarns(DeprecationWarning) as cm:
1330 with self.assertWarns(DeprecationWarning) as cm:
[all …]
Dtest_re.py950 with self.assertWarns(FutureWarning):
954 with self.assertWarns(FutureWarning):
957 with self.assertWarns(FutureWarning):
961 with self.assertWarns(FutureWarning):
964 with self.assertWarns(FutureWarning):
969 with self.assertWarns(FutureWarning):
972 with self.assertWarns(FutureWarning):
977 with self.assertWarns(FutureWarning):
980 with self.assertWarns(FutureWarning):
985 with self.assertWarns(FutureWarning):
[all …]
Dtest_int.py491 with self.assertWarns(DeprecationWarning):
502 with self.assertWarns(DeprecationWarning):
508 with self.assertWarns(DeprecationWarning):
514 with self.assertWarns(DeprecationWarning):
Dtest_binascii.py428 with self.assertWarns(DeprecationWarning):
430 with self.assertWarns(DeprecationWarning):
433 with self.assertWarns(DeprecationWarning):
436 with self.assertWarns(DeprecationWarning):
Dtest_aifc.py312 with self.assertWarns(UserWarning) as cm:
324 with self.assertWarns(UserWarning) as cm:
335 with self.assertWarns(UserWarning) as cm:
Dtest_string_literals.py112 with self.assertWarns(DeprecationWarning):
162 with self.assertWarns(DeprecationWarning):
Dtest_symtable.py221 with self.assertWarns(DeprecationWarning), \
224 with self.assertWarns(DeprecationWarning):
Dtest_gettext.py493 with self.assertWarns(DeprecationWarning):
495 with self.assertWarns(DeprecationWarning):
497 with self.assertWarns(DeprecationWarning):
817 with self.assertWarns(DeprecationWarning):
Dtest_mailcap.py93 with self.assertWarns(DeprecationWarning):
Dtest_getpass.py155 with self.assertWarns(getpass.GetPassWarning):
Dtest_codecs.py1186 with self.assertWarns(DeprecationWarning):
1188 with self.assertWarns(DeprecationWarning):
1190 with self.assertWarns(DeprecationWarning):
1192 with self.assertWarns(DeprecationWarning):
1194 with self.assertWarns(DeprecationWarning):
2413 with self.assertWarns(DeprecationWarning):
2416 with self.assertWarns(DeprecationWarning):
2418 with self.assertWarns(DeprecationWarning):
2420 with self.assertWarns(DeprecationWarning):
2422 with self.assertWarns(DeprecationWarning):
Dtest_enum.py359 with self.assertWarns(DeprecationWarning):
362 with self.assertWarns(DeprecationWarning):
2146 with self.assertWarns(DeprecationWarning):
2151 with self.assertWarns(DeprecationWarning):
2457 with self.assertWarns(DeprecationWarning):
2460 with self.assertWarns(DeprecationWarning):
2463 with self.assertWarns(DeprecationWarning):
2466 with self.assertWarns(DeprecationWarning):
2975 with self.assertWarns(DeprecationWarning):
2978 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_urllibnet.py104 with self.assertWarns(DeprecationWarning):
Dtest_float.py206 with self.assertWarns(DeprecationWarning):
220 with self.assertWarns(DeprecationWarning):
222 with self.assertWarns(DeprecationWarning):
224 with self.assertWarns(DeprecationWarning):
226 with self.assertWarns(DeprecationWarning):
/third_party/python/Lib/unittest/test/
Dtest_case.py711 with self.assertWarns(DeprecationWarning) as warninfo:
1369 self.assertWarns(UserWarning, warnings.warn, 'expected')
1422 self.assertWarns(RuntimeWarning, _runtime_warn)
1423 self.assertWarns(RuntimeWarning, _runtime_warn)
1425 self.assertWarns((DeprecationWarning, RuntimeWarning), _runtime_warn)
1427 self.assertWarns(RuntimeWarning,
1431 self.assertWarns(RuntimeWarning, lambda: 0)
1434 self.assertWarns(RuntimeWarning, None)
1440 self.assertWarns(DeprecationWarning, _runtime_warn)
1445 self.assertWarns(DeprecationWarning, _runtime_warn)
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py213 with self.assertWarns(DeprecationWarning) as cm:
229 with self.assertWarns(DeprecationWarning) as cm:
238 with self.assertWarns(DeprecationWarning):
250 with self.assertWarns(DeprecationWarning) as cm:
266 with self.assertWarns(DeprecationWarning) as cm:
323 with self.assertWarns(DeprecationWarning):
456 with self.assertWarns(DeprecationWarning):
539 with self.assertWarns(DeprecationWarning):
744 with self.assertWarns(DeprecationWarning):
1303 with self.assertWarns(DeprecationWarning):
[all …]
Dtest_futures.py143 with self.assertWarns(DeprecationWarning) as cm:
159 with self.assertWarns(DeprecationWarning) as cm:
497 with self.assertWarns(DeprecationWarning) as cm:
522 with self.assertWarns(DeprecationWarning) as cm:
Dtest_pep492.py131 with self.assertWarns(DeprecationWarning):
Dtest_streams.py750 with self.assertWarns(DeprecationWarning) as cm:
770 with self.assertWarns(DeprecationWarning) as cm:
778 with self.assertWarns(DeprecationWarning) as cm:
799 with self.assertWarns(DeprecationWarning) as cm:
Dtest_events.py2187 with self.assertWarns(DeprecationWarning):
2726 with self.assertWarns(DeprecationWarning) as cm:
2731 with self.assertWarns(DeprecationWarning) as cm:
2748 with self.assertWarns(DeprecationWarning) as cm:
2754 with self.assertWarns(DeprecationWarning) as cm:
2776 with self.assertWarns(DeprecationWarning) as cm:
2781 with self.assertWarns(DeprecationWarning) as cm:
2798 with self.assertWarns(DeprecationWarning) as cm:
2803 with self.assertWarns(DeprecationWarning) as cm:
/third_party/python/Lib/test/test_importlib/import_/
Dtest___package__.py60 with self.assertWarns(ImportWarning):
78 with self.assertWarns(ImportWarning):
/third_party/python/Lib/test/test_importlib/
Dtest_abc.py161 with self.assertWarns(DeprecationWarning):
186 with self.assertWarns(DeprecationWarning):
369 with self.assertWarns(DeprecationWarning):
418 with self.assertWarns(DeprecationWarning):
428 with self.assertWarns(DeprecationWarning):
437 with self.assertWarns(DeprecationWarning):
/third_party/python/Lib/distutils/tests/
Dtest_sysconfig.py233 self.assertWarns(DeprecationWarning,

123