Home
last modified time | relevance | path

Searched refs:bytes_warning (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/unittest/test/
Dtest_case.py1155 if sys.flags.bytes_warning:
1156 def bytes_warning(): function
1160 def bytes_warning(): function
1163 with bytes_warning(), self.assertRaises(self.failureException):
1165 with bytes_warning():
1170 with bytes_warning(), self.assertRaises(self.failureException):
1172 with bytes_warning(), self.assertRaises(self.failureException):
1174 with bytes_warning(), self.assertRaises(self.failureException):
1176 with bytes_warning(), self.assertRaises(self.failureException):
1178 with bytes_warning(), self.assertRaises(self.failureException):
[all …]
/third_party/python/Python/
Dinitconfig.c612 assert(config->bytes_warning >= 0); in config_check_consistency()
711 config->bytes_warning = -1; in _PyConfig_InitCompatConfig()
746 config->bytes_warning = 0; in config_init_defaults()
924 COPY_ATTR(bytes_warning); in _PyConfig_Copy()
1026 SET_ITEM_INT(bytes_warning); in _PyConfig_AsDict()
1291 GET_UINT(bytes_warning); in _PyConfig_FromDict()
1410 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_get_global_vars()
1447 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_set_global_vars()
2367 config->bytes_warning++; in config_parse_cmdline()
2605 if (config->bytes_warning) { in config_init_warnoptions()
[all …]
Dsysmodule.c2602 SetFlag(config->bytes_warning); in set_flags_from_config()
/third_party/python/Lib/test/
Dtest_bytes.py27 if sys.flags.bytes_warning:
1802 @unittest.skipUnless(sys.flags.bytes_warning,
1805 def bytes_warning(): function
1807 with bytes_warning():
1809 with bytes_warning():
1811 with bytes_warning():
1813 with bytes_warning():
1815 with bytes_warning():
1817 with bytes_warning():
1819 with bytes_warning():
[all …]
/third_party/python/Programs/
D_testembed.c579 config.bytes_warning = 1; in test_init_from_config()
1503 config.bytes_warning = 1; in test_init_warnoptions()
1555 config.bytes_warning = 2; in tune_config()
1573 config.bytes_warning = 0; in test_init_set_config()
/third_party/python/Include/cpython/
Dinitconfig.h158 int bytes_warning; member
/third_party/python/Lib/
Dsubprocess.py308 bytes_warning = sys.flags.bytes_warning
312 if bytes_warning > 1:
314 elif bytes_warning:
/third_party/python/Objects/
Dbytearrayobject.c995 if (_Py_GetConfig()->bytes_warning) { in bytearray_str()
1013 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
Dbytesobject.c1375 if (_Py_GetConfig()->bytes_warning) { in bytes_str()
1532 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
/third_party/python/Doc/c-api/
Dinit_config.rst577 .. c:member:: int bytes_warning
/third_party/python/Doc/library/
Dsys.rst478 :const:`bytes_warning` :option:`-b`
/third_party/python/Doc/whatsnew/
D3.2.rst493 ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)