1. Alex Mayfield
  2. circuits

Commits

James Mills  committed ca8af65 Merge
  • Participants
  • Parent commits 8134637, 44b1f4d
  • Branches default

Comments (0)

Files changed (3)

File Makefile

View file
 		--ignore=tmp \
 		--pastebin=all \
 		--cov=circuits \
-		--cov-html \
-		--cov-html-dir=coverage \
-		--cov-no-terminal \
 		tests/
 		#--cov-combine-each \
 		#--dist=each \

File circuits/core/values.py

View file
                 o.errors = v.errors
                 o.result = v.result
             if not o._parent == o:
+                o._parent.errors = o.errors
+                o._parent.result = o.result
                 notify(o._parent, v)
         
         notify(self, value)

File tests/core/test_process.py

View file
     p = MyProcess(app)
     p.start()
 
-    sleep(1)
+    retries = 3
+    for i in range(retries):
+        if app.flag:
+            break
+        sleep(1)
+    else:
+        raise Exception("app.flag not set after %d retries" % retries)
 
-    assert app.flag
     ppid = os.getpid()
     cpid = app.events[-1][0]
     assert not ppid == cpid