Re: How do I fix this test so it runs on Windows? (it uses tzset)

2010-06-18 Thread Nobody
On Thu, 17 Jun 2010 11:45:03 +0100, Chris Withers wrote: For whatever reason, tython's time module doesn't provide the tzset() function on Windows. However, you should be able to use it via ctypes. This sounds pretty heavyweight for a unit test. I'm not even sure how I would do this ;-)

Re: How do I fix this test so it runs on Windows? (it uses tzset)

2010-06-17 Thread Chris Withers
Nobody wrote: On Wed, 16 Jun 2010 16:30:02 +0100, Chris Withers wrote: I'd like to make test_non_gmt_timezone at the bottom of https://... run on Windows, any suggestions? MSVCRT has _tzset(), which understands the TZ environment variable.

How do I fix this test so it runs on Windows? (it uses tzset)

2010-06-16 Thread Chris Withers
Hi All, I'd like to make test_non_gmt_timezone at the bottom of https://secure.simplistix.co.uk/svn/Simplistix/testfixtures/branches/1.8/testfixtures/tests/test_time.py run on Windows, any suggestions? cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I fix this test so it runs on Windows? (it uses tzset)

2010-06-16 Thread Nobody
On Wed, 16 Jun 2010 16:30:02 +0100, Chris Withers wrote: I'd like to make test_non_gmt_timezone at the bottom of https://... run on Windows, any suggestions? MSVCRT has _tzset(), which understands the TZ environment variable. http://msdn.microsoft.com/en-us/library/90s5c885%28VS.80%29.aspx