[issue21829] Wrong test in ctypes

2014-06-26 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report, Claudiu. I went with a simpler fix, just comparing Py_OptimizeFlag with sys.flags.optimize. That way, we don't care if we're running as -O, -OO, or -OOO, the test will always test against the correct value. -- assignee: -> zach

[issue21829] Wrong test in ctypes

2014-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab708e4131dd by Zachary Ware in branch '3.4': Issue #21829: Fix running test_ctypes on Windows with -O or -OO http://hg.python.org/cpython/rev/ab708e4131dd New changeset bbb28082d7b4 by Zachary Ware in branch 'default': Issue #21829: Merge with 3.4

[issue21829] Wrong test in ctypes

2014-06-23 Thread R. David Murray
R. David Murray added the comment: There is an issue open for the -O/-OO and .pyo file issue. Or maybe we closed it won't fix, I forget. -O/-OO have problems. -- nosy: +r.david.murray ___ Python tracker

[issue21829] Wrong test in ctypes

2014-06-23 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21829] Wrong test in ctypes

2014-06-23 Thread Claudiu Popa
New submission from Claudiu Popa: There's a problem with ctypes.test.test_values on Windows. First, the test is wrong because it uses the following: if __debug__: self.assertEqual(opt, 0) elif ValuesTestCase.__doc__ is not None: self.assertEqual(opt, 1) ValuesTestCase doesn't have a doc