Home
last modified time | relevance | path

Searched refs:bytes_warning (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Lib/unittest/test/
H A Dtest_case.py1182 if sys.flags.bytes_warning:
1183 def bytes_warning(): function
1187 def bytes_warning(): function
1190 with bytes_warning(), self.assertRaises(self.failureException):
1192 with bytes_warning():
1197 with bytes_warning(), self.assertRaises(self.failureException):
1199 with bytes_warning(), self.assertRaises(self.failureException):
1201 with bytes_warning(), self.assertRaises(self.failureException):
1203 with bytes_warning(), self.assertRaises(self.failureException):
1205 with bytes_warning(), sel
[all...]
/third_party/python/Python/
H A Dinitconfig.c651 assert(config->bytes_warning >= 0); in config_check_consistency()
753 config->bytes_warning = -1; in _PyConfig_InitCompatConfig()
796 config->bytes_warning = 0; in config_init_defaults()
978 COPY_ATTR(bytes_warning); in _PyConfig_Copy()
1085 SET_ITEM_INT(bytes_warning); in _PyConfig_AsDict()
1354 GET_UINT(bytes_warning); in _PyConfig_FromDict()
1477 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_get_global_vars()
1514 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_set_global_vars()
2394 config->bytes_warning++; in config_parse_cmdline()
2604 * - PyConfig.bytes_warning (' in config_init_warnoptions()
[all...]
H A Dsysmodule.c2525 {"bytes_warning", "-b"},
2574 SetFlag(config->bytes_warning); in set_flags_from_config()
/third_party/python/Lib/test/
H A Dtest_bytes.py27 if sys.flags.bytes_warning:
1849 @unittest.skipUnless(sys.flags.bytes_warning,
1852 def bytes_warning():
1854 with bytes_warning():
1856 with bytes_warning():
1858 with bytes_warning():
1860 with bytes_warning():
1862 with bytes_warning():
1864 with bytes_warning():
1866 with bytes_warning()
[all...]
/third_party/python/Include/cpython/
H A Dinitconfig.h160 int bytes_warning; member
/third_party/python/Programs/
H A D_testembed.c658 config.bytes_warning = 1; in test_init_from_config()
1631 config.bytes_warning = 1; in test_init_warnoptions()
1683 config.bytes_warning = 2; in tune_config()
1701 config.bytes_warning = 0; in test_init_set_config()
/third_party/python/Lib/
H A Dsubprocess.py310 'bytes_warning': 'b',
333 bytes_warning = sys.flags.bytes_warning
336 if bytes_warning > 1:
338 elif bytes_warning:
/third_party/python/Objects/
H A Dbytesobject.c1383 if (_Py_GetConfig()->bytes_warning) { in bytes_str()
1530 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()

Completed in 22 milliseconds