agoragames/haigha — Issue #8: test_read_timestamp and test_write_timestamp failure on Mac OS
Author: vitaly-krugl
Created: 2012-03-08 03:01:52+00:00
State: open

System/library information (TEST LOG is at the bottom):

MacOS: Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

In [5]: haigha.VERSION
Out[5]: '0.4.1'

In [3]: event.__version__
Out[3]: '0.4.1'

In [11]: gevent.__version__
Out[11]: '0.13.6'

py_eventsocket-0.1.5

chai-0.1.21

In [9]: termcolor.VERSION
Out[9]: (1, 1, 0)

libevent-1.4.14b

TEST LOG:

$ scripts/test
....................................................................................................................................................................................................................................................................F..............F................................................F..................F
======================================================================
FAIL: test_field_timestamp (haigha.tests.unit.reader_test.ReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vkruglikov/Packages/chai/chai-0.1.21/chai/chai.py", line 48, in wrapper
func(self, *args, **kwargs)
File "/Users/vkruglikov/Packages/haigha/agoragames-haigha-6540e82/haigha/tests/unit/reader_test.py", line 304, in test_field_timestamp
assert_equals( d, b._field_timestamp() )
AssertionError: datetime.datetime(2011, 1, 17, 17, 36, 33) != datetime.datetime(2011, 1, 17, 14, 36, 33)

======================================================================
FAIL: test_read_timestamp (haigha.tests.unit.reader_test.ReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vkruglikov/Packages/chai/chai-0.1.21/chai/chai.py", line 48, in wrapper
func(self, *args, **kwargs)
File "/Users/vkruglikov/Packages/haigha/agoragames-haigha-6540e82/haigha/tests/unit/reader_test.py", line 184, in test_read_timestamp
assert_equals( d, b.read_timestamp() )
AssertionError: datetime.datetime(2011, 1, 17, 17, 36, 33) != datetime.datetime(2011, 1, 17, 14, 36, 33)

======================================================================
FAIL: test_field_timestamp (haigha.tests.unit.writer_test.WriterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vkruglikov/Packages/chai/chai-0.1.21/chai/chai.py", line 48, in wrapper
func(self, *args, **kwargs)
File "/Users/vkruglikov/Packages/haigha/agoragames-haigha-6540e82/haigha/tests/unit/writer_test.py", line 224, in test_field_timestamp
assert_equals( 'T\x00\x00\x00\x00\x4d\x34\xc4\x71', w._output_buffer )
AssertionError: 'T\x00\x00\x00\x00M4\xc4q' != bytearray(b'T\x00\x00\x00\x00M4\xee\xa1')

======================================================================
FAIL: test_write_timestamp (haigha.tests.unit.writer_test.WriterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vkruglikov/Packages/chai/chai-0.1.21/chai/chai.py", line 48, in wrapper
func(self, *args, **kwargs)
File "/Users/vkruglikov/Packages/haigha/agoragames-haigha-6540e82/haigha/tests/unit/writer_test.py", line 143, in test_write_timestamp
assert_equals( '\x00\x00\x00\x00\x4d\x34\xc4\x71', w._output_buffer )
AssertionError: '\x00\x00\x00\x00M4\xc4q' != bytearray(b'\x00\x00\x00\x00M4\xee\xa1')

----------------------------------------------------------------------
Ran 344 tests in 0.156s

FAILED (failures=4)