@@ -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 ():
@@ -1048,9 +1048,7 @@ def test_edge_case_03_uid_present_but_empty_with_space_character():
1048
1048
_ = reader .read (input_sdoc )
1049
1049
1050
1050
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 ]
1054
1052
1055
1053
1056
1054
def 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():
1069
1067
_ = reader .read (input_sdoc )
1070
1068
1071
1069
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 ]
1075
1071
1076
1072
1077
1073
def test_edge_case_10_empty_multiline_field ():
@@ -1094,7 +1090,7 @@ def test_edge_case_10_empty_multiline_field():
1094
1090
"Expected '^\\ [ANCHOR: ' or '[LINK: ' or "
1095
1091
"'(?ms)(?!^<<<)(?!\\ [LINK: "
1096
1092
"([\\ w]+[\\ w()\\ -\\ /.: ]*))(?!^\\ [ANCHOR: "
1097
- "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]. decode ( "utf-8" )
1093
+ "([\\ w]+[\\ w()\\ -\\ /.: ]*)).'" in exc_info .value .args [0 ]
1098
1094
)
1099
1095
1100
1096
@@ -1115,9 +1111,7 @@ def test_edge_case_11_empty_multiline_field_with_one_newline():
1115
1111
_ = reader .read (input_sdoc )
1116
1112
1117
1113
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 ]
1121
1115
1122
1116
1123
1117
def test_edge_case_19_empty_section_title ():
@@ -1139,7 +1133,7 @@ def test_edge_case_19_empty_section_title():
1139
1133
assert exc_info .type is TextXSyntaxError
1140
1134
assert (
1141
1135
"Expected 'MID: ' or 'UID: ' or 'LEVEL: ' or 'TITLE: '"
1142
- == exc_info .value .args [0 ]. decode ( "utf-8" )
1136
+ == exc_info .value .args [0 ]
1143
1137
)
1144
1138
1145
1139
@@ -1160,7 +1154,7 @@ def test_edge_case_20_empty_section_title():
1160
1154
_ = reader .read (input_sdoc )
1161
1155
1162
1156
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 ]
1164
1158
1165
1159
1166
1160
def test_edge_case_21_section_title_with_empty_space ():
@@ -1181,7 +1175,7 @@ def test_edge_case_21_section_title_with_empty_space():
1181
1175
_ = reader .read (input_sdoc )
1182
1176
1183
1177
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 ]
1185
1179
1186
1180
1187
1181
def 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():
1202
1196
_ = reader .read (input_sdoc )
1203
1197
1204
1198
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 ]
1206
1200
1207
1201
1208
1202
def test_edge_case_23_leading_spaces_do_not_imply_empy_field (
0 commit comments