Index: docutils/test/test_parsers/test_rst/test_directives/test_code.py =================================================================== --- docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8494) +++ docutils/test/test_parsers/test_rst/test_directives/test_code.py (revision 8495) @@ -98,7 +98,7 @@ totest['code-parsing'] = [ ["""\ -.. code:: python +.. code:: python3 :class: testclass print('hello world') # to stdout @@ -105,9 +105,9 @@ """, """\ - + \n\ - + print ( @@ -120,7 +120,7 @@ # to stdout """], ["""\ -.. code:: python +.. code:: python3 :class: testclass :name: my_function :number-lines: 7 @@ -134,7 +134,7 @@ """, """\ - + 7 \n\ @@ -167,7 +167,7 @@ 12 \n\ \n\ - + print ( Index: docutils/test/test_parsers/test_rst/test_directives/test_code_long.py =================================================================== --- docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8494) +++ docutils/test/test_parsers/test_rst/test_directives/test_code_long.py (revision 8495) @@ -24,7 +24,7 @@ totest['code-parsing-long'] = [ ["""\ -.. code:: python +.. code:: python3 :number-lines: 7 def my_function(): @@ -36,7 +36,7 @@ """, """\ - + 7 \n\ @@ -69,7 +69,7 @@ 12 \n\ \n\ - + print ( Index: docutils/test/test_parsers/test_rst/test_interpreted.py =================================================================== --- docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8494) +++ docutils/test/test_parsers/test_rst/test_interpreted.py (revision 8495) @@ -271,7 +271,7 @@ Custom role based on code role: .. role:: python(code) - :language: python + :language: python3 :class: testclass Python code :python:`print("The end")`. @@ -282,8 +282,8 @@ Custom role based on code role: Python code \n\ - - + + print (