diff options
| author | 2020-05-25 21:02:24 -0700 | |
|---|---|---|
| committer | 2020-05-25 21:02:24 -0700 | |
| commit | a8a216d0803b67a330ae092a17bea563f5012275 (patch) | |
| tree | 4d014495a1204d566b192de341315d24f2e24a34 /tests/helpers.py | |
| parent | Add more valid tokens to test the regex with (diff) | |
Fix valid token regex test
It was broken due to the addition of groups. Rather than returning the
full match, `findall` returns groups if any exist. The test was
comparing a tuple of groups to the token string, which was of course
failing. Now `fullmatch` is used cause it's simpler - just check for
`None` and don't worry about iterating matches to search.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions