• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LudovicRousseau / pyscard-devel / 10656126729 / 1
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 01 Sep 2024 05:48PM UTC
Files 65
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Sep 2024 04:53PM UTC coverage: 28.823%. Remained the same
10656126729.1

push

github

LudovicRousseau
Fix error: cannot access local variable 'hresult'

When running smartcard/test/framework/testsuite_framework.py we get the
error:

ERROR: testcase_CardReconnectNoConnect (testcase_CardConnection.testcase_CardConnection.testcase_CardReconnectNoConnect)
Test .reconnect()
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/.../smartcard/test/framework/testcase_CardConnection.py", line 239, in testcase_CardReconnectNoConnect
    self.assertRaises(CardConnectionException,
  File "/usr/local/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/unittest/case.py", line 778, in assertRaises
    return context.handle('assertRaises', args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/unittest/case.py", line 238, in handle
    callable_obj(*args, **kwargs)
  File "/.../smartcard/CardConnectionDecorator.py", line 58, in reconnect
    self.component.reconnect(protocol, mode, disposition)
  File "/.../smartcard/pcsc/PCSCCardConnection.py", line 154, in reconnect
    hresult=hresult)
            ^^^^^^^
UnboundLocalError: cannot access local variable 'hresult' where it is not associated with a value

850 of 2949 relevant lines covered (28.82%)

0.29 hits per line

Source Files on job 10656126729.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10656126729
  • 3c1b6a71 on github
  • Prev Job for on master (#10655271729.1)
  • Next Job for on master (#10752536286.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc