tchaumeny / PyPoly

A Python extension written in C, implementing the Polynomial type.
MIT License
5 stars 3 forks source link

Test failure under Windows 8 #4

Open Luchau opened 10 years ago

Luchau commented 10 years ago

When I run the test suite under Windows I get this failure :

======================================================================
FAIL: test_overflow (test_representation.RepresentationTestCase)
We use a finite buffer (typically, 2048 chars) to construct the repr
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Lucas\Python\PyPoly\tests\test_representation.py", line 47, in
test_overflow
    self.assertEqual(len(long_repr), 2047)
AssertionError: 2048 != 2047

----------------------------------------------------------------------
Ran 85 tests in 0.009s

FAILED (failures=1)
tchaumeny commented 10 years ago

Ok I eventually got it: this is because of a specific behavior of the snprintf function on Windows platforms...

See: