diff options
Diffstat (limited to 'tests/lexers/pytb/example5.txt')
| -rw-r--r-- | tests/lexers/pytb/example5.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/lexers/pytb/example5.txt b/tests/lexers/pytb/example5.txt new file mode 100644 index 00000000..0de33a5f --- /dev/null +++ b/tests/lexers/pytb/example5.txt @@ -0,0 +1,42 @@ +---input--- +>>> 3/"3" +Traceback (most recent call last): + File "<stdin>", line 1, in <module> +TypeError: unsupported operand type(s) for /: 'int' and 'str' +>>> blah +Traceback (most recent call last): + File "<stdin>", line 1, in <module> +builtins.NameError + +---tokens--- +'>>> 3/"3"\n' Other + +'Traceback (most recent call last):\n' Generic.Traceback + +' File ' Text +'"<stdin>"' Name.Builtin +', line ' Text +'1' Literal.Number +', in ' Text +'<module>' Name +'\n' Text + +'TypeError' Generic.Error +': ' Text +"unsupported operand type(s) for /: 'int' and 'str'" Name +'\n' Text + +'>>> blah\n' Other + +'Traceback (most recent call last):\n' Generic.Traceback + +' File ' Text +'"<stdin>"' Name.Builtin +', line ' Text +'1' Literal.Number +', in ' Text +'<module>' Name +'\n' Text + +'builtins.NameError' Generic.Error +'\n' Text |
