mirror of https://github.com/python/cpython
parent
98b9c07ab7
commit
be1501b976
|
@ -357,7 +357,7 @@ class SysModuleTest(unittest.TestCase):
|
||||||
attrs = ("debug", "py3k_warning", "division_warning", "division_new",
|
attrs = ("debug", "py3k_warning", "division_warning", "division_new",
|
||||||
"inspect", "interactive", "optimize", "dont_write_bytecode",
|
"inspect", "interactive", "optimize", "dont_write_bytecode",
|
||||||
"no_site", "ignore_environment", "tabcheck", "verbose",
|
"no_site", "ignore_environment", "tabcheck", "verbose",
|
||||||
"unicode")
|
"unicode", "bytes_warning")
|
||||||
for attr in attrs:
|
for attr in attrs:
|
||||||
self.assert_(hasattr(sys.flags, attr), attr)
|
self.assert_(hasattr(sys.flags, attr), attr)
|
||||||
self.assertEqual(type(getattr(sys.flags, attr)), int, attr)
|
self.assertEqual(type(getattr(sys.flags, attr)), int, attr)
|
||||||
|
|
|
@ -1178,9 +1178,9 @@ static PyStructSequence_Desc flags_desc = {
|
||||||
flags__doc__, /* doc */
|
flags__doc__, /* doc */
|
||||||
flags_fields, /* fields */
|
flags_fields, /* fields */
|
||||||
#ifdef RISCOS
|
#ifdef RISCOS
|
||||||
15
|
16
|
||||||
#else
|
#else
|
||||||
14
|
15
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue