From: Benjamin Peterson Date: Fri, 9 Jul 2010 19:37:00 +0000 (+0000) Subject: be more robust across platforms X-Git-Tag: v3.2a1~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b669221bd1de1343a0a86c851a2d45ba979d19c1;p=thirdparty%2FPython%2Fcpython.git be more robust across platforms --- diff --git a/Lib/test/test_structseq.py b/Lib/test/test_structseq.py index 417b52147f6b..d6c63b792fe0 100644 --- a/Lib/test/test_structseq.py +++ b/Lib/test/test_structseq.py @@ -38,7 +38,7 @@ class StructSeqTest(unittest.TestCase): # os.stat() gives a complicated struct sequence. st = os.stat(__file__) rep = repr(st) - self.assertTrue(rep.startswith("posix.stat_result")) + self.assertTrue(rep.startswith(os.name + ".stat_result")) self.assertIn("st_mode=", rep) self.assertIn("st_ino=", rep) self.assertIn("st_dev=", rep)