@@ -530,6 +530,8 @@ def test_private_doctests_patterns(str_expr, msgs, str_expected, fail_msg):
530530 "FromCharacterCode[{{97, 98, x}, {100, 101, x}}]" ,
531531 None ,
532532 ),
533+
534+ # These tests are commented out due to the bug reported in issue #906
533535 # Octal and hexadecimal notation works alone, but fails
534536 # as a part of another expression. For example,
535537 # F[\.78\.79\.7A] or "\.78\.79\.7A" produces a syntax error in Mathics.
@@ -559,13 +561,14 @@ def test_private_doctests_characters(str_expr, msgs, str_expected, fail_msg):
559561 expected_messages = msgs ,
560562 )
561563
564+ # These tests are separated due to the bug reported in issue #906
562565
563566@pytest .mark .parametrize (
564567 ("str_expr" , "str_expected" , "fail_msg" ),
565568 [
566- (r"\.78\.79\.7A" , "xyz" , "variable name using octal characters" ),
567- (r"\:0078\:0079\:007A" , "xyz" , "variable name using octal characters" ),
568- (r"\101\102\103\061\062\063" , "ABC123" , "variable name using octal characters" ),
569+ (r"\.78\.79\.7A" , "xyz" , "variable name using hexadecimal characters" ),
570+ (r"\:0078\:0079\:007A" , "xyz" , "variable name using hexadecimal characters" ),
571+ (r"\101\102\103\061\062\063" , "ABC123" , "variable name using hexadecimal characters" ),
569572 ],
570573)
571574def test_private_doctests_characters (str_expr , str_expected , fail_msg ):
0 commit comments