mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
- fix the check for long for py3
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
from wx.lib import six
|
||||
import wx.dataview as dv
|
||||
import os
|
||||
|
||||
@@ -43,8 +44,11 @@ class dataview_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_dataviewItem7(self):
|
||||
# max integer size on platforms where long is 64-bit
|
||||
n = 2**63 - 1
|
||||
assert type(n) is long
|
||||
n = 2**63 - 1
|
||||
if six.PY3:
|
||||
assert type(n) is int
|
||||
else:
|
||||
assert type(n) is long
|
||||
dvi = dv.DataViewItem(n)
|
||||
self.assertTrue(dvi)
|
||||
self.assertTrue(int(dvi.GetID()) == n)
|
||||
|
||||
Reference in New Issue
Block a user