Some flake fixes

This commit is contained in:
Jean-Paul Calderone 2023-01-17 08:41:10 -05:00
parent 8cc4e5905d
commit d14ba09dbb
3 changed files with 18 additions and 3 deletions

View File

@ -14,7 +14,9 @@ from attrs import evolve
from pytest import mark
from pytest_twisted import ensureDeferred
from .vectors import vectors
from twisted.python.filepath import FilePath
from . import vectors
from .util import CHK, SSK, reconfigure, upload, TahoeProcess
def digest(bs: bytes) -> bytes:
@ -138,7 +140,7 @@ async def skiptest_generate(reactor, request, alice):
results.append(result)
write_results(vectors.DATA_PATH, results)
def write_results(path: FilePath, results: list[tuple[Case, str]]) -> None:
def write_results(path: FilePath, results: list[tuple[vectors.Case, str]]) -> None:
"""
Save the given results.
"""

View File

@ -1,3 +1,16 @@
__all__ = [
"DATA_PATH",
"CURRENT_VERSION",
"MAX_SHARES",
"Case",
"Sample",
"SeedParam",
"encode_bytes",
"capabilities",
]
from .vectors import (
DATA_PATH,
CURRENT_VERSION,

View File

@ -15,7 +15,7 @@ from base64 import b64encode, b64decode
from twisted.python.filepath import FilePath
from .util import CHK, SSK
from ..util import CHK, SSK
DATA_PATH: FilePath = FilePath(__file__).sibling("vectors").child("test_vectors.yaml")