From 0c1b485ad671fc0abac15cd0bbec894e517e1dd9 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Thu, 17 Oct 2019 09:43:55 -0700 Subject: [PATCH] exclude utf8 tests under py3 These are known to not work until https://bugs.python.org/issue37093 is addressed in CPython upstream. Change-Id: I4a6877907d14b632a9a477c887913488427b62b7 --- test/probe/test_reconstructor_rebuild.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/probe/test_reconstructor_rebuild.py b/test/probe/test_reconstructor_rebuild.py index 7f580d74f7..e8db3db70d 100644 --- a/test/probe/test_reconstructor_rebuild.py +++ b/test/probe/test_reconstructor_rebuild.py @@ -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__":