mirror of https://github.com/kivy/kivy.git
py3: fix xrange/print in test/kv
This commit is contained in:
parent
d36e92459e
commit
446d6ff8c6
|
@ -154,8 +154,8 @@ class LangTestCase(unittest.TestCase):
|
|||
Builder.load_string('''
|
||||
<TestClass>:
|
||||
on_press:
|
||||
print 'hello world'
|
||||
print 'this is working !'
|
||||
print('hello world')
|
||||
print('this is working !')
|
||||
self.a = 1
|
||||
''')
|
||||
wid = TestClass()
|
||||
|
|
|
@ -150,7 +150,7 @@ class ListViewTestCase(unittest.TestCase):
|
|||
ListView:
|
||||
id: lvm
|
||||
size_hint: .8,.8
|
||||
item_strings: ["Item #{0}".format(i) for i in xrange(100)]
|
||||
item_strings: ["Item #{0}".format(i) for i in range(100)]
|
||||
""")
|
||||
|
||||
class ListViewModal(ModalView):
|
||||
|
@ -184,7 +184,7 @@ class ListViewTestCase(unittest.TestCase):
|
|||
size_hint: .8,.8
|
||||
adapter:
|
||||
sla.SimpleListAdapter(
|
||||
data=["Item #{0}".format(i) for i in xrange(100)],
|
||||
data=["Item #{0}".format(i) for i in range(100)],
|
||||
cls=label.Label)
|
||||
""")
|
||||
|
||||
|
|
Loading…
Reference in New Issue