summaryrefslogtreecommitdiff
path: root/host/mex/test/test.py
diff options
context:
space:
mode:
authorNicolas Schodet2009-02-09 20:05:30 +0100
committerNicolas Schodet2009-02-09 20:05:30 +0100
commit2e95e3a33bcb34aeec66551503c692c1cb80ab61 (patch)
tree6b763ee0d1bf458da0ced13f44535b42f3b8efb8 /host/mex/test/test.py
parent552b28da98a387d13aea7403a7e72732a913277d (diff)
* all python:
- changed tabs to spaces.
Diffstat (limited to 'host/mex/test/test.py')
-rw-r--r--host/mex/test/test.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/host/mex/test/test.py b/host/mex/test/test.py
index c4382c2c..4be24f49 100644
--- a/host/mex/test/test.py
+++ b/host/mex/test/test.py
@@ -15,12 +15,12 @@ h = Hub (min_clients = 2, log = log)
def c1 ():
n = Node ()
def a (msg):
- print 'oucouc'
- nb, = msg.pop ('B')
- nb += 1
- m = Msg (msg.mtype)
- m.push ('B', nb)
- n.response (m)
+ print 'oucouc'
+ nb, = msg.pop ('B')
+ nb += 1
+ m = Msg (msg.mtype)
+ m.push ('B', nb)
+ n.response (m)
n.register (0x82, a)
m = Msg (0x81)
n.send (m)
@@ -31,7 +31,7 @@ f1 = Forked (c1)
def c2 ():
n = Node ()
def a (msg):
- print 'coucou'
+ print 'coucou'
n.register (0x81, a)
m = Msg (0x82)
m.push ('B', 42)
@@ -40,9 +40,9 @@ def c2 ():
assert r.pop ('B') == (43,)
n.wait_async (42)
while not n.sync ():
- fds = select.select ((n, ), (), ())[0]
- for i in fds:
- i.read ()
+ fds = select.select ((n, ), (), ())[0]
+ for i in fds:
+ i.read ()
n.wait ()
f2 = Forked (c2)