Skip to content

Commit

Permalink
autopep8 cleanup of Examples/test-suite/python
Browse files Browse the repository at this point in the history
automated cleanup of python pep8 whitespace compliance
  • Loading branch information
Jon Schlueter authored and yazug committed May 9, 2015
1 parent 9086eb3 commit b77f3af
Show file tree
Hide file tree
Showing 202 changed files with 3,496 additions and 3,401 deletions.
3 changes: 1 addition & 2 deletions Examples/test-suite/python/abstract_access_runme.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

d = abstract_access.D()
if d.do_x() != 1:
raise RuntimeError

raise RuntimeError
7 changes: 1 addition & 6 deletions Examples/test-suite/python/abstract_typedef2_runme.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
from abstract_typedef2 import *
from abstract_typedef2 import *

a = A_UF()





9 changes: 3 additions & 6 deletions Examples/test-suite/python/abstract_typedef_runme.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from abstract_typedef import *
from abstract_typedef import *
e = Engine()

a = A()


if a.write(e) != 1:
raise RuntimeError



if a.write(e) != 1:
raise RuntimeError
29 changes: 14 additions & 15 deletions Examples/test-suite/python/argcargvtest_runme.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
from argcargvtest import *

largs=['hi','hola','hello']
largs = ['hi', 'hola', 'hello']
if mainc(largs) != 3:
raise RuntimeError("bad main typemap")
raise RuntimeError("bad main typemap")

targs=('hi','hola')
if mainv(targs,1) != 'hola':
print(mainv(targs,1))
raise RuntimeError("bad main typemap")
targs = ('hi', 'hola')
if mainv(targs, 1) != 'hola':
print(mainv(targs, 1))
raise RuntimeError("bad main typemap")

targs=('hi', 'hola')
if mainv(targs,1) != 'hola':
raise RuntimeError("bad main typemap")
targs = ('hi', 'hola')
if mainv(targs, 1) != 'hola':
raise RuntimeError("bad main typemap")

try:
error = 0
mainv('hello',1)
error = 1
error = 0
mainv('hello', 1)
error = 1
except TypeError:
pass
pass
if error:
raise RuntimeError("bad main typemap")

raise RuntimeError("bad main typemap")


initializeApp(largs)
15 changes: 6 additions & 9 deletions Examples/test-suite/python/array_member_runme.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
f = Foo()
f.data = cvar.global_data

for i in range(0,8):
if get_value(f.data,i) != get_value(cvar.global_data,i):
for i in range(0, 8):
if get_value(f.data, i) != get_value(cvar.global_data, i):
raise RuntimeError, "Bad array assignment"


for i in range(0,8):
set_value(f.data,i,-i)
for i in range(0, 8):
set_value(f.data, i, -i)

cvar.global_data = f.data

for i in range(0,8):
if get_value(f.data,i) != get_value(cvar.global_data,i):
for i in range(0, 8):
if get_value(f.data, i) != get_value(cvar.global_data, i):
raise RuntimeError, "Bad array assignment"



8 changes: 4 additions & 4 deletions Examples/test-suite/python/arrays_global_runme.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

arrays_global.cvar.array_i = arrays_global.cvar.array_const_i

from arrays_global import *
from arrays_global import *

BeginString_FIX44a
cvar.BeginString_FIX44b
BeginString_FIX44c
cvar.BeginString_FIX44d
cvar.BeginString_FIX44d
cvar.BeginString_FIX44b ="12"'\0'"45"
cvar.BeginString_FIX44b = "12"'\0'"45"
cvar.BeginString_FIX44b
cvar.BeginString_FIX44d
cvar.BeginString_FIX44e
BeginString_FIX44f

test_a("hello","hi","chello","chi")
test_a("hello", "hi", "chello", "chi")

test_b("1234567","hi")
test_b("1234567", "hi")
Loading

0 comments on commit b77f3af

Please sign in to comment.