[Python-checkins] r86818 - python/branches/py3k-stat-on-windows/Lib/test/test_os.py

hirokazu.yamamoto python-checkins at python.org
Fri Nov 26 19:49:07 CET 2010


Author: hirokazu.yamamoto
Date: Fri Nov 26 19:49:07 2010
New Revision: 86818

Log:
Added more direct os.link test for os.path.samefile.

Modified:
   python/branches/py3k-stat-on-windows/Lib/test/test_os.py

Modified: python/branches/py3k-stat-on-windows/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k-stat-on-windows/Lib/test/test_os.py	(original)
+++ python/branches/py3k-stat-on-windows/Lib/test/test_os.py	Fri Nov 26 19:49:07 2010
@@ -878,6 +878,7 @@
             f1.write("test")
 
         os.link(file1, file2)
+        self.assertTrue(os.path.samefile(file1, file2))
         with open(file1, "r") as f1, open(file2, "r") as f2:
             self.assertTrue(os.path.sameopenfile(f1.fileno(), f2.fileno()))
 


More information about the Python-checkins mailing list