[Python-checkins] r82750 - python/branches/py3k/Lib/test/test_structseq.py
benjamin.peterson
python-checkins at python.org
Fri Jul 9 21:37:00 CEST 2010
Author: benjamin.peterson
Date: Fri Jul 9 21:37:00 2010
New Revision: 82750
Log:
be more robust across platforms
Modified:
python/branches/py3k/Lib/test/test_structseq.py
Modified: python/branches/py3k/Lib/test/test_structseq.py
==============================================================================
--- python/branches/py3k/Lib/test/test_structseq.py (original)
+++ python/branches/py3k/Lib/test/test_structseq.py Fri Jul 9 21:37:00 2010
@@ -38,7 +38,7 @@
# 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)
More information about the Python-checkins
mailing list