-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated tests #43
base: main
Are you sure you want to change the base?
Updated tests #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you PR it to the dev instead of the main branch? :)
@@ -5,7 +5,9 @@ jobs: | |||
runs-on: ubuntu-latest | |||
strategy: | |||
matrix: | |||
python-version: ["3.10", 3.11, 3.12] | |||
python-version: ["3.10", 3.11, 3.12, 3.13] | |||
# TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove :)
@@ -5,7 +5,8 @@ | |||
except ImportError: | |||
gnupg = None | |||
|
|||
smime_import_error = "Cannot import M2Crypto. Run: `sudo apt install swig && pip3 install M2Crypto`" | |||
# smime_import_error = "Cannot import M2Crypto. Run: `sudo apt install swig && pip3 install M2Crypto`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ten starý můžeš odstranit :)
from cryptography.x509 import load_pem_x509_certificate | ||
from cryptography.hazmat.primitives import hashes, serialization | ||
except ImportError: | ||
raise ImportError(smime_import_error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
přesně takhle si to představuju! :) Ale aby to tam nebylo třikrát, extrahuj to do nějaké funkce jako _import_cryptography
nebo tak
Test invalid and disguised addresses only with python v3.11+