'The special built-in console file in Python 2 which has an \'encoding\'
attribute should qualify as a special type, since it accepts both bytes
and text faithfully.'

def test_2openTextMode(self):

    class VerySpecificLie(file, ):
        "\n                                                In    their    infinite    wisdom,    the    CPython    developers    saw    fit    not    to\n                                                allow    us    a    writable    'encoding'    attribute    on    the    built-in    'file'\n                                                type    in    Python    2,    despite    making    it    writable    in    C    with\n                                                PyFile_SetEncoding.\n\n                                                Pretend    they    did    not    do    that.\n                                                "
        encoding = 'utf-8'
    self.assertEqual(ioType(VerySpecificLie(self.mktemp(), 'wb')), basestring)
