diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2018-09-24 23:32:42 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2018-09-24 23:32:42 -0500 |
commit | 60568e17ac1d70a5af39309ab955f87282f2d5f8 (patch) | |
tree | 12c2022edd329e50732d3781208fd75efa14bdf9 /unitTests.py | |
parent | 54728a0f0c68c77272b8f5c9b82e3bcac12f8ee4 (diff) | |
download | pyparsing-git-60568e17ac1d70a5af39309ab955f87282f2d5f8.tar.gz |
Fix tab-space inconsistency wrought by misconfigured editor
Diffstat (limited to 'unitTests.py')
-rw-r--r-- | unitTests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unitTests.py b/unitTests.py index a165e39..b7a5171 100644 --- a/unitTests.py +++ b/unitTests.py @@ -985,13 +985,13 @@ class SkipToParserTests(ParseTestCase): tryToParse('some text /* comment with ; in */; working')
tryToParse('some text /* comment with ; in */some other stuff; working', fail_expected=True)
- # test that we correctly create named results
- text = "prefixDATAsuffix"
- data = Literal("DATA")
- suffix = Literal("suffix")
- expr = SkipTo(data + suffix)('prefix') + data + suffix
- result = expr.parseString(text)
- assert isinstance(result.prefix, str), "SkipTo created with wrong saveAsList attribute"
+ # test that we correctly create named results
+ text = "prefixDATAsuffix"
+ data = Literal("DATA")
+ suffix = Literal("suffix")
+ expr = SkipTo(data + suffix)('prefix') + data + suffix
+ result = expr.parseString(text)
+ assert isinstance(result.prefix, str), "SkipTo created with wrong saveAsList attribute"
class CustomQuotesTest(ParseTestCase):
def runTest(self):
|