mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
Ensure tests do not break without schemes
This commit is contained in:
parent
e7602479f1
commit
493d77d89b
@ -40,6 +40,7 @@ class Scheme:
|
|||||||
def all_schemes_of_type(type: str) -> list:
|
def all_schemes_of_type(type: str) -> list:
|
||||||
schemes = []
|
schemes = []
|
||||||
p = os.path.join('..', 'crypto_' + type)
|
p = os.path.join('..', 'crypto_' + type)
|
||||||
|
if os.path.isdir(p):
|
||||||
for d in os.listdir(p):
|
for d in os.listdir(p):
|
||||||
if os.path.isdir(os.path.join(p, d)):
|
if os.path.isdir(os.path.join(p, d)):
|
||||||
if type == 'kem':
|
if type == 'kem':
|
||||||
|
Loading…
Reference in New Issue
Block a user