Fix pub tests for automake 1.11 and clean up all the regtests
Merge pull request #54 from till-varoquaux/pub_test

Fix pub tests for automake 1.11
Warn when calling blocking primitives in non-blocking contextes.