Fix tests for python 3.  refs #6380

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/failureResultOf-optional-types-6380@37832 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb