Searched refs:bytes_warning (Results 1 – 12 of 12) sorted by relevance
/third_party/python/Lib/unittest/test/ |
D | test_case.py | 1155 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/ |
D | initconfig.c | 612 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 …]
|
D | sysmodule.c | 2602 SetFlag(config->bytes_warning); in set_flags_from_config()
|
/third_party/python/Lib/test/ |
D | test_bytes.py | 27 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.c | 579 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/ |
D | initconfig.h | 158 int bytes_warning; member
|
/third_party/python/Lib/ |
D | subprocess.py | 308 bytes_warning = sys.flags.bytes_warning 312 if bytes_warning > 1: 314 elif bytes_warning:
|
/third_party/python/Objects/ |
D | bytearrayobject.c | 995 if (_Py_GetConfig()->bytes_warning) { in bytearray_str() 1013 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
|
D | bytesobject.c | 1375 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/ |
D | init_config.rst | 577 .. c:member:: int bytes_warning
|
/third_party/python/Doc/library/ |
D | sys.rst | 478 :const:`bytes_warning` :option:`-b`
|
/third_party/python/Doc/whatsnew/ |
D | 3.2.rst | 493 ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)
|