File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -479,13 +479,13 @@ def test_missing_space():
479
479
assert matrix .frames [0 ].signals [0 ].name == "sig1"
480
480
481
481
def test_escaped_quotes ():
482
- dbc = io .BytesIO (textwrap .dedent (u '''\
482
+ dbc = io .BytesIO (textwrap .dedent (r '''
483
483
BO_ 17 Frame_1: 8 Vector__XXX
484
484
SG_ Signal : 0|8@1-(1,0)[0|0] "" Vector__XXX
485
485
486
- VAL_ 17 Signal 0 "zero" 1 "one " 2 "string with \\ "escaped\ \ " double quotes";
486
+ VAL_ 17 Signal 0 "zero" 1 "one " 2 "string with \"escaped\" double quotes";
487
487
''' ).encode ('utf-8' ))
488
488
matrix = canmatrix .formats .dbc .load (dbc , dbcImportEncoding = "utf8" )
489
- assert matrix .frames [0 ].signals [0 ].values [2 ] == 'string with "escaped" double quotes'
489
+ assert matrix .frames [0 ].signals [0 ].values [2 ] == r 'string with "escaped" double quotes'
490
490
491
491
You can’t perform that action at this time.
0 commit comments