@@ -1029,7 +1029,7 @@ def test_edge_case_02_uid_present_but_empty_with_no_space_character():
1029
1029
_ = reader .read (input_sdoc )
1030
1030
1031
1031
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 ]
1033
1033
1034
1034
1035
1035
def test_edge_case_03_uid_present_but_empty_with_space_character ():
@@ -1050,7 +1050,7 @@ def test_edge_case_03_uid_present_but_empty_with_space_character():
1050
1050
assert exc_info .type is TextXSyntaxError
1051
1051
assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [
1052
1052
0
1053
- ]. decode ( "utf-8" )
1053
+ ]
1054
1054
1055
1055
1056
1056
def test_edge_case_04_uid_present_but_empty_with_two_space_characters ():
@@ -1071,7 +1071,7 @@ def test_edge_case_04_uid_present_but_empty_with_two_space_characters():
1071
1071
assert exc_info .type is TextXSyntaxError
1072
1072
assert "Expected '([\\ w]+[\\ w()\\ -\\ /.: ]*)'" in exc_info .value .args [
1073
1073
0
1074
- ]. decode ( "utf-8" )
1074
+ ]
1075
1075
1076
1076
1077
1077
def test_edge_case_10_empty_multiline_field ():
@@ -1094,7 +1094,7 @@ def test_edge_case_10_empty_multiline_field():
1094
1094
"Expected '^\\ [ANCHOR: ' or '[LINK: ' or "
1095
1095
"'(?ms)(?!^<<<)(?!\\ [LINK: "
1096
1096
"([\\ w]+[\\ w()\\ -\\ /.: ]*))(?!^\\ [ANCHOR: "
1097
- "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]. decode ( "utf-8" )
1097
+ "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]
1098
1098
)
1099
1099
1100
1100
@@ -1115,9 +1115,7 @@ def test_edge_case_11_empty_multiline_field_with_one_newline():
1115
1115
_ = reader .read (input_sdoc )
1116
1116
1117
1117
assert exc_info .type is TextXSyntaxError
1118
- assert "Node statement cannot be empty." == exc_info .value .args [0 ].decode (
1119
- "utf-8"
1120
- )
1118
+ assert "Node statement cannot be empty." == exc_info .value .args [0 ]
1121
1119
1122
1120
1123
1121
def test_edge_case_19_empty_section_title ():
@@ -1139,7 +1137,7 @@ def test_edge_case_19_empty_section_title():
1139
1137
assert exc_info .type is TextXSyntaxError
1140
1138
assert (
1141
1139
"Expected 'MID: ' or 'UID: ' or 'LEVEL: ' or 'TITLE: '"
1142
- == exc_info .value .args [0 ]. decode ( "utf-8" )
1140
+ == exc_info .value .args [0 ]
1143
1141
)
1144
1142
1145
1143
@@ -1160,7 +1158,7 @@ def test_edge_case_20_empty_section_title():
1160
1158
_ = reader .read (input_sdoc )
1161
1159
1162
1160
assert exc_info .type is TextXSyntaxError
1163
- assert "Expected SingleLineString" == exc_info .value .args [0 ]. decode ( "utf-8" )
1161
+ assert "Expected SingleLineString" == exc_info .value .args [0 ]
1164
1162
1165
1163
1166
1164
def test_edge_case_21_section_title_with_empty_space ():
@@ -1181,7 +1179,7 @@ def test_edge_case_21_section_title_with_empty_space():
1181
1179
_ = reader .read (input_sdoc )
1182
1180
1183
1181
assert exc_info .type is TextXSyntaxError
1184
- assert "Expected SingleLineString" in exc_info .value .args [0 ]. decode ( "utf-8" )
1182
+ assert "Expected SingleLineString" in exc_info .value .args [0 ]
1185
1183
1186
1184
1187
1185
def test_edge_case_22_section_title_with_two_empty_spaces ():
@@ -1202,7 +1200,7 @@ def test_edge_case_22_section_title_with_two_empty_spaces():
1202
1200
_ = reader .read (input_sdoc )
1203
1201
1204
1202
assert exc_info .type is TextXSyntaxError
1205
- assert "Expected SingleLineString" in exc_info .value .args [0 ]. decode ( "utf-8" )
1203
+ assert "Expected SingleLineString" == exc_info .value .args [0 ]
1206
1204
1207
1205
1208
1206
def test_edge_case_23_leading_spaces_do_not_imply_empy_field (
0 commit comments