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

LudovicRousseau / pyscard-devel / 14284919686

05 Apr 2025 07:03PM UTC coverage: 63.023% (+0.01%) from 63.009%
14284919686

push

github

LudovicRousseau
Add context manager protocol to CardService

You can now use the with ...: construct.
The PC/SC context used by the card service will be released at the end
of the context.

Example:
from smartcard.CardRequest import CardRequest

with CardRequest(timeout=10) as req:
    with req.waitforcard() as svc:
        svc.connection.connect()
        svc.connection.disconnect()

103 of 482 branches covered (21.37%)

Branch coverage included in aggregate %.

4 of 10 new or added lines in 2 files covered. (40.0%)

44 existing lines in 20 files now uncovered.

4446 of 6736 relevant lines covered (66.0%)

4.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/smartcard/Synchronization.py


Source Not Available

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