<s> """<STR_LIT>""" <EOL> from twisted . python . runtime import platform <EOL> from twisted . trial . unittest import TestCase <EOL> if platform . isWindows ( ) : <EOL> from twisted . internet import _pollingfile <EOL> else : <EOL> _pollingfile = None <EOL> class TestPollableWritePipe ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_writeUnicode ( self ) : <EOL> """<STR_LIT>""" <EOL> p = _pollingfile . _PollableWritePipe ( <NUM_LIT:1> , lambda : None ) <EOL> self . assertRaises ( TypeError , p . write , u"<STR_LIT:test>" ) <EOL> def test_writeSequenceUnicode ( self ) : <EOL> """<STR_LIT>""" <EOL> p = _pollingfile . _PollableWritePipe ( <NUM_LIT:1> , lambda : None ) <EOL> self . assertRaises ( TypeError , p . writeSequence , [ u"<STR_LIT:test>" ] ) <EOL> self . assertRaises ( TypeError , p . writeSequence , ( u"<STR_LIT:test>" , ) ) <EOL> if _pollingfile is None : <EOL> TestPollableWritePipe . skip = "<STR_LIT>" </s>
