JMU-CS / JMU-CS/jmu_pytest_utils

Add line number and filename when an error is raised

Open
#23 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Right now, students see an error like:
```
IndexError: string index out of range
```
Or:
```
TypeError: ord() expected a character, but string of length 0 found
```
It's unclear whether the error occurs in the student code or test code. Showing the line number would let the student know where to look first, or at least know what question to ask.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.