[pywin32-checkins] pywin32/win32/test test_win32file.py,1.25,1.26
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Jason R. C. <ja...@us...> - 2009-01-16 03:29:44
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31531/test Modified Files: test_win32file.py Log Message: Updated test for win32file for changes to win32timezone. Index: test_win32file.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32file.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** test_win32file.py 14 Jan 2009 01:20:58 -0000 1.25 --- test_win32file.py 16 Jan 2009 03:29:31 -0000 1.26 *************** *** 123,128 **** def testFileTimes(self): if issubclass(pywintypes.TimeType, datetime.datetime): ! from win32timezone import GetLocalTimeZone ! now = datetime.datetime.now(tz=GetLocalTimeZone()) nowish = now + datetime.timedelta(seconds=1) later = now + datetime.timedelta(seconds=120) --- 123,128 ---- def testFileTimes(self): if issubclass(pywintypes.TimeType, datetime.datetime): ! from win32timezone import TimeZoneInfo ! now = datetime.datetime.now(tz=TimeZoneInfo.local()) nowish = now + datetime.timedelta(seconds=1) later = now + datetime.timedelta(seconds=120) |