[Python-checkins] r62894 - in python/trunk: Lib/test/test_sys.py Python/sysmodule.c
brett.cannon
python-checkins at python.org
Thu May 8 22:23:06 CEST 2008
Author: brett.cannon
Date: Thu May 8 22:23:06 2008
New Revision: 62894
Log:
Fix sys.flags to properly expose bytes_warning.
Closes issue #2790.
Modified:
python/trunk/Lib/test/test_sys.py
python/trunk/Python/sysmodule.c
Modified: python/trunk/Lib/test/test_sys.py
==============================================================================
--- python/trunk/Lib/test/test_sys.py (original)
+++ python/trunk/Lib/test/test_sys.py Thu May 8 22:23:06 2008
@@ -357,7 +357,7 @@
attrs = ("debug", "py3k_warning", "division_warning", "division_new",
"inspect", "interactive", "optimize", "dont_write_bytecode",
"no_site", "ignore_environment", "tabcheck", "verbose",
- "unicode")
+ "unicode", "bytes_warning")
for attr in attrs:
self.assert_(hasattr(sys.flags, attr), attr)
self.assertEqual(type(getattr(sys.flags, attr)), int, attr)
Modified: python/trunk/Python/sysmodule.c
==============================================================================
--- python/trunk/Python/sysmodule.c (original)
+++ python/trunk/Python/sysmodule.c Thu May 8 22:23:06 2008
@@ -1178,9 +1178,9 @@
flags__doc__, /* doc */
flags_fields, /* fields */
#ifdef RISCOS
- 15
+ 16
#else
- 14
+ 15
#endif
};
More information about the Python-checkins
mailing list