Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/
Dwarnings.py417 bytes_warning = sys.flags.bytes_warning variable
418 if bytes_warning > 1:
420 elif bytes_warning:
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1148 if sys.flags.bytes_warning:
1149 def bytes_warning(): function
1153 def bytes_warning(): function
1156 with bytes_warning(), self.assertRaises(self.failureException):
1158 with bytes_warning():
1163 with bytes_warning(), self.assertRaises(self.failureException):
1165 with bytes_warning(), self.assertRaises(self.failureException):
1167 with bytes_warning(), self.assertRaises(self.failureException):
1169 with bytes_warning(), self.assertRaises(self.failureException):
1171 with bytes_warning(), self.assertRaises(self.failureException):
[all …]
/external/python/cpython3/Python/
Dinitconfig.c627 config->bytes_warning = -1; in _PyConfig_InitCompatConfig()
658 config->bytes_warning = 0; in config_init_defaults()
837 COPY_ATTR(bytes_warning); in _PyConfig_Copy()
940 SET_ITEM_INT(bytes_warning); in config_as_dict()
1049 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_get_global_vars()
1086 COPY_FLAG(bytes_warning, Py_BytesWarningFlag); in config_set_global_vars()
1978 config->bytes_warning++; in config_parse_cmdline()
2216 if (config->bytes_warning) { in config_init_warnoptions()
2218 if (config->bytes_warning> 1) { in config_init_warnoptions()
2561 assert(config->bytes_warning >= 0); in PyConfig_Read()
Dsysmodule.c2482 SetFlag(config->bytes_warning); in make_flags()
/external/python/cpython3/Lib/test/
Dtest_bytes.py25 if sys.flags.bytes_warning:
1768 @unittest.skipUnless(sys.flags.bytes_warning,
1771 def bytes_warning(): function
1773 with bytes_warning():
1775 with bytes_warning():
1777 with bytes_warning():
1779 with bytes_warning():
1781 with bytes_warning():
1783 with bytes_warning():
1785 with bytes_warning():
[all …]
/external/python/cpython3/Include/cpython/
Dinitconfig.h244 int bytes_warning; member
/external/python/cpython3/Lib/
Dsubprocess.py312 bytes_warning = sys.flags.bytes_warning
316 if bytes_warning > 1:
318 elif bytes_warning:
/external/python/cpython3/Programs/
D_testembed.c566 config.bytes_warning = 1; in test_init_from_config()
1491 config.bytes_warning = 1; in test_init_warnoptions()
/external/python/cpython3/Objects/
Dbytearrayobject.c999 if (_Py_GetConfig()->bytes_warning) { in bytearray_str()
1024 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytearray_richcompare()
Dbytesobject.c1344 if (_Py_GetConfig()->bytes_warning) { in bytes_str()
1501 if (_Py_GetConfig()->bytes_warning && (op == Py_EQ || op == Py_NE)) { in bytes_richcompare()
/external/python/cpython2/Misc/NEWS.d/
D2.6b1.rst115 sys.flags was not properly exposing its bytes_warning attribute.
/external/python/cpython2/Lib/test/
Dtest_bytes.py19 if sys.flags.bytes_warning:
/external/python/cpython3/Doc/c-api/
Dinit_config.rst455 .. c:member:: int bytes_warning
/external/python/cpython2/Doc/library/
Dsys.rst287 :const:`bytes_warning` :option:`-b`
/external/python/cpython3/Doc/library/
Dsys.rst461 :const:`bytes_warning` :option:`-b`
/external/python/cpython3/Doc/whatsnew/
D3.2.rst493 ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)