-
Notifications
You must be signed in to change notification settings - Fork 124
Fix for #244 #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #244 #245
Conversation
re.escape() changed behavior in python 3.7.
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
=======================================
Coverage 96.39% 96.39%
=======================================
Files 1 1
Lines 1221 1221
=======================================
Hits 1177 1177
Misses 44 44
Continue to review full report at Codecov.
|
| .cache | ||
| *.pyc | ||
| .coverage | ||
| .tox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, that should have always been there ;-)
|
|
||
| def _transform_transcript_expected(self, s): | ||
| """parse the string with slashed regexes into a valid regex""" | ||
| """parse the string with slashed regexes into a valid regex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice description
| ( 'use 2/3 cup', 'use\ 2\/3\ cup' ), | ||
| ( '/tmp is nice', '\/tmp\ is\ nice'), | ||
| ( 'slash at end/', 'slash\ at\ end\/'), | ||
| # strings with zero or one slash or with escaped slashes means no regular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
In python 3.7, the behavior of re.escape() changed. Rework the test cases in test_transcript.py to ensure they run properly on both 3.4-3.6 as well as 3.7.
This closes #244