Skip to content

Commit 946d8b3

Browse files
committed
Added jnius import test to test app
1 parent 56e7cd6 commit 946d8b3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/testapp_nogui/main.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
from math import sqrt
33

44
for i in range(50):
5-
print i, sqrt(i)
5+
print(i, sqrt(i))
66

7-
print 'Just printing stuff apparently worked, trying pyjnius'
7+
print('Just printing stuff apparently worked, trying pyjnius')
88

99
import jnius
1010

11-
print 'Importing jnius worked'
11+
print('Importing jnius worked')
1212

13-
print 'Trying to autoclass activity'
13+
print('Trying to autoclass activity')
1414

1515
from jnius import autoclass
1616

17+
print('Imported autoclass')
18+
1719
NewPythonActivity = autoclass('net.inclem.android.NewPythonActivity')
1820

19-
print ':o the autoclass worked!'
21+
print(':o the autoclass worked!')
2022

0 commit comments

Comments
 (0)