and the same in 3.x, though with some errors found in the nee editor module
Pythonista version 3.0 (300003) on iOS 8.4.1 on a 32-bit iPad3,3 with a screen size of (1024 x 768) * 2
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 35, in test_bugs.md
Failed example:
ui.convert_point((10,0), v,None)-ui.convert_point((0,0), v,None)
Expected:
Point(10.00, 0.00)
Got:
Point(-20.00, 0.00)
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 37, in test_bugs.md
Failed example:
ui.convert_point((0,10),v,None)-ui.convert_point((0,0), v,None)
Expected:
Point(0.00, 10.00)
Got:
Point(0.00, -20.00)
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 86, in test_bugs.md
Failed example:
v.on_screen
Expected:
False
Got:
True
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 113, in test_bugs.md
Failed example:
v.present('popover',popover_location=ui.Point(0,0))
Exception raised:
Traceback (most recent call last):
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/doctest.py", line 1320, in __run
compileflags, 1), test.globs)
File "<doctest test_bugs.md[50]>", line 1, in <module>
v.present('popover',popover_location=ui.Point(0,0))
TypeError: Expected a tuple
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 128, in test_bugs.md
Failed example:
v.touch_enabled
Expected:
False
Got:
True
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 139, in test_bugs.md
Failed example:
with tmpfile as f:
f.write('a\n')
Exception raised:
Traceback (most recent call last):
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/doctest.py", line 1320, in __run
compileflags, 1), test.globs)
File "<doctest test_bugs.md[60]>", line 2, in <module>
f.write('a\n')
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/tempfile.py", line 484, in func_wrapper
return func(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/objc_util.py", line 875, in OMMainThreadDispatcher_invoke_imp
retval = func(*args, **kwargs)
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py", line 128, in open_file
if not path.startswith('/'):
UnboundLocalError: local variable 'path' referenced before assignment
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/objc_util.py", line 875, in OMMainThreadDispatcher_invoke_imp
retval = func(*args, **kwargs)
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py", line 128, in open_file
if not path.startswith('/'):
UnboundLocalError: local variable 'path' referenced before assignment
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 150, in test_bugs.md
Failed example:
open(tmpfile.name).read()
Expected:
'b\n'
Got:
''
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/objc_util.py", line 875, in OMMainThreadDispatcher_invoke_imp
retval = func(*args, **kwargs)
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py", line 128, in open_file
if not path.startswith('/'):
UnboundLocalError: local variable 'path' referenced before assignment
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 162, in test_bugs.md
Failed example:
v.flex
Expected:
'H'
Got:
''
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 164, in test_bugs.md
Failed example:
v.frame
Expected:
Rect(0.00, 0.00, 200.00, 200.00)
Got:
Rect(0.00, 0.00, 100.00, 100.00)
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 173, in test_bugs.md
Failed example:
scene.ShapeNode() #doctest:+ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/doctest.py", line 1320, in __run
compileflags, 1), test.globs)
File "<doctest test_bugs.md[75]>", line 1, in <module>
scene.ShapeNode() #doctest:+ELLIPSIS
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/scene.py", line 293, in __init__
self.line_width = path.line_width
AttributeError: 'NoneType' object has no attribute 'line_width'
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 184, in test_bugs.md
Failed example:
scene.SpriteNode(texture=None,color=(0,1,1)) #doctest:+ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/var/mobile/Containers/Bundle/Application/0AA728A2-9F29-44AB-8980-8C236203F6C2/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/doctest.py", line 1320, in __run
compileflags, 1), test.globs)
File "<doctest test_bugs.md[76]>", line 1, in <module>
scene.SpriteNode(texture=None,color=(0,1,1)) #doctest:+ELLIPSIS
TypeError: expected a Texture or image name
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 195, in test_bugs.md
Failed example:
abs(r.inset(0,10).width)
Expected:
80.0
Got:
120.0
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 205, in test_bugs.md
Failed example:
r==r.translate(0,0) # works
Expected:
True
Got:
False
**********************************************************************
File "/private/var/mobile/Containers/Shared/AppGroup/C534C622-2FDA-41F7-AE91-E3AAFE5FFC6B/Documents/pythonistatest/test_bugs.md", line 209, in test_bugs.md
Failed example:
r==r.translate(0,0) #fails
Expected:
True
Got:
False
**********************************************************************
1 items had failures:
15 of 83 in test_bugs.md
***Test Failed*** 15 failures