LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
379 stars 108 forks source link

pyscard 1.9.8 - failed test on i586 and armv7 #76

Closed mnhauke closed 5 years ago

mnhauke commented 5 years ago

Since the last update to v1.9.8 one test fails to run (test_ListReadersException) on 32bit platforms.

It seems that the issue was introduced in https://github.com/LudovicRousseau/pyscard/commit/e8d68228ddb5fdf85eb74874e5d6cc011cac0640

[   11s] test_InvalidReaderException (test.test_Exceptions.TestUtil) ... ok
[   11s] test_ListReadersException (test.test_Exceptions.TestUtil) ... FAIL
[   11s] test_NoReadersException (test.test_Exceptions.TestUtil) ... ok
[   11s] test_ATR1 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR2 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR3 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR4 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR5 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR6 (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR_TS (test.test_ATR.TestUtil) ... ok
[   11s] test_ATR_get (test.test_ATR.TestUtil) ... ok
[   11s] 
[   11s] ======================================================================
[   11s] FAIL: test_ListReadersException (test.test_Exceptions.TestUtil)
[   11s] ----------------------------------------------------------------------
[   11s] Traceback (most recent call last):
[   11s]   File "/home/abuild/rpmbuild/BUILD/pyscard-1.9.8/test/test_Exceptions.py", line 41, in test_ListReadersException
[   11s]     self.assertEqual(text, "Failed to list readers: Service not available. (0x8010001D)")
[   11s] AssertionError: 'Failed to list readers: Service not available. (0x-7FEFFFE3)' != 'Failed to list readers: Service not available. (0x8010001D)'
[   11s] 
[   11s] ----------------------------------------------------------------------
[   11s] Ran 24 tests in 0.002s
[   11s] 
[   11s] FAILED (failures=1)
[   11s] Test failed: <unittest.runner.TextTestResult run=24 errors=0 failures=1>
[   11s] error: Test failed: <unittest.runner.TextTestResult run=24 errors=0 failures=1>
LudovicRousseau commented 5 years ago

Thanks for the notice. I will have a look.

LudovicRousseau commented 5 years ago

Fixed in https://github.com/LudovicRousseau/pyscard/commit/9bc2659f7062cc1be7c9d5719afadcdd46e5e7e1

Thanks