@@ -694,14 +694,15 @@ def test_additional_targets_should_not_be_translated(app, status, warning):
694
694
yield assert_count (expected_expr , result , 1 )
695
695
696
696
# C code block with lang should not be translated but be *C* highlighted
697
- expected_expr = """<span class="cp">#include <stdio.h></span>"""
697
+ expected_expr = ("""<span class="cp">#include</span> """
698
+ """<span class="cpf"><stdio.h></span>""" )
698
699
yield assert_count (expected_expr , result , 1 )
699
700
700
701
# doctest block should not be translated but be highlighted
701
702
expected_expr = (
702
703
"""<span class="gp">>>> </span>"""
703
704
"""<span class="kn">import</span> <span class="nn">sys</span> """
704
- """<span class="c "># sys importing</span>""" )
705
+ """<span class="c1 "># sys importing</span>""" )
705
706
yield assert_count (expected_expr , result , 1 )
706
707
707
708
## raw.txt
@@ -754,14 +755,15 @@ def test_additional_targets_should_be_translated(app, status, warning):
754
755
yield assert_count (expected_expr , result , 1 )
755
756
756
757
# C code block with lang should be translated and be *C* highlighted
757
- expected_expr = """<span class="cp">#include <STDIO.H></span>"""
758
+ expected_expr = ("""<span class="cp">#include</span> """
759
+ """<span class="cpf"><STDIO.H></span>""" )
758
760
yield assert_count (expected_expr , result , 1 )
759
761
760
762
# doctest block should not be translated but be highlighted
761
763
expected_expr = (
762
764
"""<span class="gp">>>> </span>"""
763
765
"""<span class="kn">import</span> <span class="nn">sys</span> """
764
- """<span class="c "># SYS IMPORTING</span>""" )
766
+ """<span class="c1 "># SYS IMPORTING</span>""" )
765
767
yield assert_count (expected_expr , result , 1 )
766
768
767
769
## raw.txt
0 commit comments