Package: axe-demultiplexer / 0.3.3+dfsg-3

0005-do_not_depend_python2.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 26 Apr 2018 15:14:56 +0200
Description: Enable running tests using Python3 instead of Python2
 When switching Build-Depends from python-sphinx to python3-sphinx
 the Python 2 interpreter was not installed any more in the build
 time environment.  This was used to trigger the build time test
 suite.  By changing the script tp Python3 it is possible to get
 rid of this dependency.

--- a/tests/axe_cli_tests.py
+++ b/tests/axe_cli_tests.py
@@ -1,5 +1,5 @@
-#!/usr/bin/env python
-from __future__ import print_function
+#!/usr/bin/env python3
+
 import hashlib
 import logging
 import os
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -19,7 +19,7 @@ ADD_TEST(NAME "UnitTests" COMMAND test_a
 SET(COVERAGE_CMD test_axe)
 SET(COVERAGE_OUT "${CMAKE_BINARY_DIR}/coverage_html")
 
-ADD_TEST(NAME "IntegrationTests" COMMAND python
+ADD_TEST(NAME "IntegrationTests" COMMAND python3
          ${CMAKE_BINARY_DIR}/bin/axe_cli_tests.py
          ${CMAKE_BINARY_DIR})