Merge "exclude utf8 tests under py3"

This commit is contained in:
Zuul 2019-10-30 00:39:25 +00:00 committed by Gerrit Code Review
commit af373a9cbc

View File

@ -457,10 +457,12 @@ class TestReconstructorRebuild(ECProbeTest):
self.assertNotIn('X-Delete-At', headers)
class TestReconstructorRebuildUTF8(TestReconstructorRebuild):
if six.PY2:
class TestReconstructorRebuildUTF8(TestReconstructorRebuild):
def _make_name(self, prefix):
return b'%s\xc3\xa8-%s' % (prefix.encode(), str(uuid.uuid4()).encode())
def _make_name(self, prefix):
return b'%s\xc3\xa8-%s' % (
prefix.encode(), str(uuid.uuid4()).encode())
if __name__ == "__main__":