summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-09 19:37:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-07-09 19:37:00 (GMT)
commitb669221bd1de1343a0a86c851a2d45ba979d19c1 (patch)
tree977c4c118e129f49148e582b3622790fb639f42f /Lib
parent10de93a715ecf1f1829cf65ca275c0adc0db7c01 (diff)
downloadcpython-b669221bd1de1343a0a86c851a2d45ba979d19c1.zip
cpython-b669221bd1de1343a0a86c851a2d45ba979d19c1.tar.gz
cpython-b669221bd1de1343a0a86c851a2d45ba979d19c1.tar.bz2
be more robust across platforms
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_structseq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_structseq.py b/Lib/test/test_structseq.py
index 417b521..d6c63b7 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)