Skip to content

Commit

Permalink
fix (some) failing tests
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
Abhiram98 committed Dec 19, 2024
1 parent 494a2c2 commit 6ebde1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crosshair/diff_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ def run_iteration(
realized_args,
Result(
repr(deep_realize(result1[0])),
realize(repr(result1[1])),
realize(repr(result1[1]) if result1[1] else None),
post_execution_args1,
),
Result(
repr(deep_realize(result2[0])),
realize(repr(result2[1])),
realize(repr(result2[1]) if result2[1] else None),
post_execution_args2,
),
coverage_manager.get_results(fn1),
Expand Down
7 changes: 6 additions & 1 deletion crosshair/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ def call_check(
def call_diffbehavior(fn1: str, fn2: str) -> Tuple[int, List[str]]:
buf: io.StringIO = io.StringIO()
errbuf: io.StringIO = io.StringIO()
retcode = diffbehavior(Namespace(fn1=fn1, fn2=fn2), DEFAULT_OPTIONS, buf, errbuf)
retcode = diffbehavior(
Namespace(fn1=fn1, fn2=fn2, exception_equivalence="type_and_message"),
DEFAULT_OPTIONS,
buf,
errbuf,
)
lines = [
ls for ls in buf.getvalue().split("\n") + errbuf.getvalue().split("\n") if ls
]
Expand Down

0 comments on commit 6ebde1e

Please sign in to comment.