also clear HTTP_PROXY for cosocket test

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112357 e099a375-04f9-0310-9d5f-a741eaff62e1
tests: rewrite and expand cosocket test with unittest

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112358 e099a375-04f9-0310-9d5f-a741eaff62e1
coserver: sockets recv()

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112359 e099a375-04f9-0310-9d5f-a741eaff62e1
tests: don't leak sockets

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112360 e099a375-04f9-0310-9d5f-a741eaff62e1
tests: socketpair() in 2.X is different...

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112361 e099a375-04f9-0310-9d5f-a741eaff62e1
cosocket: keyword args for makefile()

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112362 e099a375-04f9-0310-9d5f-a741eaff62e1
Merge branch 'master' into python3

Conflicts:
	cothread/cosocket.py
	tests/cosocket.py
in python 3.x socket() and socketpair() both create the same thing
test runner script for multiple python versions

Signed-off-by: Michael Davidsaver <mdavidsaver@bnl.gov>

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112363 e099a375-04f9-0310-9d5f-a741eaff62e1
Cothread: Workaround for compiler warning

Alas, the valgrind headers trigger a compiler warning, which we suppress
here by marking valgrind.h as a "system header" file.

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112364 e099a375-04f9-0310-9d5f-a741eaff62e1
Cothread: Fix probable syntax error in assembler

Seems that clang is more fussy than gcc about the syntax of the .type
directive, so fix a missing comma.

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112365 e099a375-04f9-0310-9d5f-a741eaff62e1
Cothread: Tweaks to top level test script

Assign sensible default arguments, prepare for more tests, remove
workaround for bug now fixed, other miscellaneous tweaks.

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112366 e099a375-04f9-0310-9d5f-a741eaff62e1
Merge branch 'master' into python3
Cothread: Fix typo in ca_extra_fields

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112370 e099a375-04f9-0310-9d5f-a741eaff62e1
Merge branch 'master' into python3
Cothread: Add mechanism for requesting entire waveform

As ca{get,monitor}(pv, ..., count=0) requests data dependent waveform
length we need a simple mechanism for always requesting the entire
waveform.

Also update the documentation for count.

git-svn-id: svn+ssh://serv0002.cs.diamond.ac.uk/home/subversion/repos/controls/diamond/trunk/python/cothread@112382 e099a375-04f9-0310-9d5f-a741eaff62e1
Merge branch 'master' into python3
fix warning ISO C90 forbids mixed declarations and code

-Werror=declaration-after-statement
coserver: call undocumented server_close()

necessary to actually close the listening socket
coserver: close interrupter socket