diff options
| author | Tomáš Jusko | 2023-10-15 23:22:12 +0200 |
|---|---|---|
| committer | Tomáš Jusko | 2023-10-15 23:22:12 +0200 |
| commit | 819b4e121b6a339a6dc5c915f973d2ff81926290 (patch) | |
| tree | 80bc1386f5b987854fda2754b5029361f05c22a5 | |
| parent | 8700a51f56ab1ec196c1bddf02ac0c3336f83b36 (diff) | |
| download | pyecsca-819b4e121b6a339a6dc5c915f973d2ff81926290.tar.gz pyecsca-819b4e121b6a339a6dc5c915f973d2ff81926290.tar.zst pyecsca-819b4e121b6a339a6dc5c915f973d2ff81926290.zip | |
fix: Moved exception import from file scope to function
| -rw-r--r-- | test/sca/test_target.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sca/test_target.py b/test/sca/test_target.py index 96dc081..ac0c8c8 100644 --- a/test/sca/test_target.py +++ b/test/sca/test_target.py @@ -5,7 +5,6 @@ from copy import copy import pytest from importlib_resources import files, as_file -from smartcard.pcsc.PCSCExceptions import BaseSCardException import test.data.sca from pyecsca.ec.key_agreement import ECDH_SHA1 from pyecsca.ec.key_generation import KeyGeneration @@ -88,6 +87,7 @@ def target(): if not has_pyscard: pytest.skip("No pyscard.") from smartcard.System import readers + from smartcard.pcsc.PCSCExceptions import BaseSCardException rs = None try: rs = readers() |
