evhub / evhub/coconut

Produce better assert error messages

Open
#456 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
4.4k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

We should do something similar to what pytest does with assert statements and provide a default error message for simple assert patterns with more information than the default message. For example, we should compile
```python
assert x == y
```
into something like
```python
assert x == y, "assertion 'x == y' failed; {} != {}".format(x, y)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.