@@ -1029,7 +1029,7 @@ def test_edge_case_02_uid_present_but_empty_with_no_space_character():
10291029 _ = reader .read (input_sdoc )
10301030
10311031 assert exc_info .type is TextXSyntaxError
1032- assert "Expected ': '" == exc_info .value .args [0 ]. decode ( "utf-8" )
1032+ assert "Expected ': '" == exc_info .value .args [0 ]
10331033
10341034
10351035def test_edge_case_03_uid_present_but_empty_with_space_character ():
@@ -1048,9 +1048,7 @@ def test_edge_case_03_uid_present_but_empty_with_space_character():
10481048 _ = reader .read (input_sdoc )
10491049
10501050 assert exc_info .type is TextXSyntaxError
1051- assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [
1052- 0
1053- ].decode ("utf-8" )
1051+ assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [0 ]
10541052
10551053
10561054def test_edge_case_04_uid_present_but_empty_with_two_space_characters ():
@@ -1069,9 +1067,7 @@ def test_edge_case_04_uid_present_but_empty_with_two_space_characters():
10691067 _ = reader .read (input_sdoc )
10701068
10711069 assert exc_info .type is TextXSyntaxError
1072- assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [
1073- 0
1074- ].decode ("utf-8" )
1070+ assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [0 ]
10751071
10761072
10771073def test_edge_case_10_empty_multiline_field ():
@@ -1094,7 +1090,7 @@ def test_edge_case_10_empty_multiline_field():
10941090 "Expected '^\\ [ANCHOR: ' or '[LINK: ' or "
10951091 "'(?ms)(?!^<<<)(?!\\ [LINK: "
10961092 "([\\ w]+[\\ w()\\ -\\ /.: ]*))(?!^\\ [ANCHOR: "
1097- "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]. decode ( "utf-8" )
1093+ "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]
10981094 )
10991095
11001096
@@ -1115,9 +1111,7 @@ def test_edge_case_11_empty_multiline_field_with_one_newline():
11151111 _ = reader .read (input_sdoc )
11161112
11171113 assert exc_info .type is TextXSyntaxError
1118- assert "Node statement cannot be empty." == exc_info .value .args [0 ].decode (
1119- "utf-8"
1120- )
1114+ assert "Node statement cannot be empty." == exc_info .value .args [0 ]
11211115
11221116
11231117def test_edge_case_19_empty_section_title ():
@@ -1139,7 +1133,7 @@ def test_edge_case_19_empty_section_title():
11391133 assert exc_info .type is TextXSyntaxError
11401134 assert (
11411135 "Expected 'MID: ' or 'UID: ' or 'LEVEL: ' or 'TITLE: '"
1142- == exc_info .value .args [0 ]. decode ( "utf-8" )
1136+ == exc_info .value .args [0 ]
11431137 )
11441138
11451139
@@ -1160,7 +1154,7 @@ def test_edge_case_20_empty_section_title():
11601154 _ = reader .read (input_sdoc )
11611155
11621156 assert exc_info .type is TextXSyntaxError
1163- assert "Expected SingleLineString" == exc_info .value .args [0 ]. decode ( "utf-8" )
1157+ assert "Expected SingleLineString" == exc_info .value .args [0 ]
11641158
11651159
11661160def test_edge_case_21_section_title_with_empty_space ():
@@ -1181,7 +1175,7 @@ def test_edge_case_21_section_title_with_empty_space():
11811175 _ = reader .read (input_sdoc )
11821176
11831177 assert exc_info .type is TextXSyntaxError
1184- assert "Expected SingleLineString" in exc_info .value .args [0 ]. decode ( "utf-8" )
1178+ assert "Expected SingleLineString" in exc_info .value .args [0 ]
11851179
11861180
11871181def test_edge_case_22_section_title_with_two_empty_spaces ():
@@ -1202,7 +1196,7 @@ def test_edge_case_22_section_title_with_two_empty_spaces():
12021196 _ = reader .read (input_sdoc )
12031197
12041198 assert exc_info .type is TextXSyntaxError
1205- assert "Expected SingleLineString" in exc_info .value .args [0 ]. decode ( "utf-8" )
1199+ assert "Expected SingleLineString" == exc_info .value .args [0 ]
12061200
12071201
12081202def test_edge_case_23_leading_spaces_do_not_imply_empy_field (
0 commit comments