LongReprTest fails on the Mac because it uses filenames with more than
32 characters per component. This makes mkdir() calls and such fail with EINVAL.

For now I am disabling the test on the Mac, and I'll open a bugreport.
diff --git a/Lib/test/test_repr.py b/Lib/test/test_repr.py
index c23fe77..f635edb 100644
--- a/Lib/test/test_repr.py
+++ b/Lib/test/test_repr.py
@@ -266,4 +266,5 @@
 
 
 run_unittest(ReprTests)
-run_unittest(LongReprTest)
+if os.name != 'mac':
+    run_unittest(LongReprTest)