Re: Regression in build 1964, AddGrowableCol fails
Scott Talbert <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
And you're using the 64-bit compiled version, right? On Wed, 13 Apr 2016, Eric Fahlgren wrote: > Sho' nuff, that test fails. > > Build 1943 > > python test_wacky_ints.py > sss > ---------------------------------------------------------------------- > Ran 3 tests in 0.000s > > OK (skipped=3) > > > Build 1964 > F.F====================================================================== > FAIL: test_wacky1 (__main__.wacky_ints_Tests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_wacky_ints.py", line 13, in test_wacky1 > self.assertEqual(n, 123456) > AssertionError: 18446744073709551615L != 123456 > > ====================================================================== > FAIL: test_wacky3 (__main__.wacky_ints_Tests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_wacky_ints.py", line 23, in test_wacky3 > self.assertEqual(n, 123456) > AssertionError: 18446744073709551615L != 123456 > > ---------------------------------------------------------------------- > Ran 3 tests in 0.000s > > FAILED (failures=2) > > > On Wed, Apr 13, 2016 at 9:11 AM, Scott Talbert <[email protected]> wrote: > I assume you're using the 64-bit precompiled versions? > > Can you run the wacky_ints unittest and see what happens: > https://github.com/wxWidgets/Phoenix/blob/master/unittests/test_wacky_ints. > py > > You'll probably have to clone the repo, cd into it and then run: > python unittests/test_wacky_ints.py > > On Wed, 13 Apr 2016, Eric Fahlgren wrote: > > Our development machines are all Windows 7 x64 with > Python 2.7.11 x64. I > pip install the precompiled binaries > from http://wxpython.org/Phoenix/snapshot-builds/ (I > only have VC++ 10.0, > not the 9.0 prescribed for Py2.7, and it's just > easier to grab the > precompiled ones). > > On Tue, Apr 12, 2016 at 8:34 PM, Scott Talbert > <[email protected]> wrote: > I'm guessing this is probably related to the > size_t mapping > changes that Robin did. > > You're running 64-bit Windows? Did you > compile Phoenix > yourself or did you use one of the precompiled > versions? > > On Tue, 12 Apr 2016, Eric Fahlgren wrote: > > > cat grow.py > from __future__ import print_function > > from sys import version > print(version) > > import wx > print(wx.__version__) > > app = wx.App() > > sizer = wx.FlexGridSizer(4, 4, 0, 0) > print("cols", sizer.GetCols(), > sizer.EffectiveColsCount) > print("rows", sizer.GetRows(), > sizer.EffectiveRowsCount) > > sizer.AddGrowableCol(1) > for col in range(sizer.GetCols()): > print(col, sizer.IsColGrowable(col)) > > > > python grow.py > 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, > 20:40:30) [MSC > v.1500 64 bit > (AMD64)] > 3.0.3.dev1943+fdf739f > cols 4 4 > rows 4 4 > 0 False > 1 True > 2 False > 3 False > > > python grow.py > 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, > 20:40:30) [MSC > v.1500 64 bit > (AMD64)] > 3.0.3.dev1964+f780b21 > cols 4 4 > rows 4 4 > Traceback (most recent call last): > File "grow.py", line 15, in <module> > sizer.AddGrowableCol(1) > wx._core.wxAssertionError: C++ assertion > "!m_cols || idx > < (size_t)m_cols" > failed at ..\..\src\common\sizer.cpp(1980) in > wxFlexGridSizer::AddGrowableCol(): invalid > column index > > -- > You received this message because you are subscribed > to the > Google Groups > "wxPython-dev" group. > To unsubscribe from this group and stop receiving > emails from > it, send an > email to [email protected]. > For more options, visit > https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed > to the Google Groups > "wxPython-dev" group. > To unsubscribe from this group and stop receiving > emails from it, send an > email to [email protected]. > For more options, visit > https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "wxPython-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > >