'field.strptime() doesn\'t raise a UnicodeEncodeError (#16123)'

def test_datefield_strptime(self):

    f = DateField()
    try:
        f.strptime('31    \xd0\xbc\xd0\xb0\xd1\x8f    2011', '%d-%b-%y')
    except Exception as e:
        self.assertEqual(e.__class__, ValueError)
