Make 'python setup.py {trial,test}' run 'trial --rterrors foolscap.test'.
fixes #202

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
.gitignore: ignore *~, *.pyc and /_trial_temp*/

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
setup.py: make the required Twisted version consistent with the README.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
Improvements to .gitignore.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Make 'setup.py test' and 'setup.py trial' work.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Fix uninitialized variable errors when socket creation fails.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
raise errors within the ListenOn Mixin when one IP version or another isn't enabled
detect when twisted doesn't support IPv6, skip IPv6 tests, don't check if we are listening on an IPv6 port
Only check for for IPv6 vs IPv4 if Twisted supports IPv6