Skip to content

Commit eec59c2

Browse files
authored
Merge pull request #1092 from markshannon/python-fix-2-tests
Python: Update python-2 specific tests for new parser/tokenizer.
2 parents 690e2ae + ccd18b6 commit eec59c2

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

python/ql/test/2/library-tests/locations/strings/test.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| 16 | 5 | 17 | 7 | ef |
66
| 21 | 1 | 21 | 8 | string |
77
| 24 | 1 | 24 | 10 | \n\n\n\n |
8-
| 27 | 1 | 27 | 14 | \\u0123\\u1234 |
8+
| 27 | 1 | 27 | 14 | \u0123\u1234 |
99
| 30 | 1 | 30 | 9 | word |
1010
| 33 | 1 | 33 | 14 | \n\n\n\n0 |
1111
| 36 | 1 | 39 | 3 | \nline 0\nline 1\n |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| EncodingError.py:5:8:5:8 | Encoding Error | 'ascii' codec can't decode byte 0xc3 in position 47: ordinal not in range(128) |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| bad_encoding.py:11:19:11:19 | Encoding Error | 'ascii' codec can't decode byte 0x82 in position 82: ordinal not in range(128) |
1+
| bad_encoding.py:11:19:11:19 | Encoding Error | 'utf8' codec can't decode byte 0x82 in position 82: invalid start byte |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| nonsense.py:1:1:1:1 | Syntax Error | Syntax Error (in Python 2.7). |
1+
| nonsense.py:1:14:1:14 | Syntax Error | Syntax Error (in Python 2.7). |

python/ql/test/2/query-tests/Imports/syntax_error/nonsense.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
`Twas brillig, and the slithy toves
1+
`Twas brillig, and the slithy toves
22
Did gyre and gimble in the wabe:
33
All mimsy were the borogoves,
44
And the mome raths outgrabe.

0 commit comments

Comments
 (0)