[evince/wip/gpoo/initial-test-suite-for-evince] tests: Fix changes in Python3
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/initial-test-suite-for-evince] tests: Fix changes in Python3
- Date: Wed, 2 Mar 2022 15:09:23 +0000 (UTC)
commit bc391cf6eb1393af13d61e04cd7ab91a5f21183a
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Wed Mar 2 12:08:48 2022 -0300
tests: Fix changes in Python3
test/behave_common_steps.py | 5 +++--
test/steps/steps.py | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/test/behave_common_steps.py b/test/behave_common_steps.py
index 279dd1926..2f9114975 100644
--- a/test/behave_common_steps.py
+++ b/test/behave_common_steps.py
@@ -5,7 +5,8 @@ if isA11yEnabled() is False:
from time import time, sleep
from functools import wraps
-from os import strerror, errno, system
+from os import strerror, system
+import errno
from signal import signal, alarm, SIGALRM
from subprocess import Popen, PIPE
from behave import step,then
@@ -13,7 +14,7 @@ from gi.repository import GLib, Gio
import fcntl, os
from dogtail.rawinput import keyCombo, click, typeText, absoluteMotion, pressKey
from dogtail.tree import root, SearchError
-from iniparse import ConfigParser
+from configparser import ConfigParser
import traceback
from unittest import TestCase
import logging
diff --git a/test/steps/steps.py b/test/steps/steps.py
index ed061b3f9..61be6b3d8 100644
--- a/test/steps/steps.py
+++ b/test/steps/steps.py
@@ -32,7 +32,7 @@ def open_settings(context):
@step(u'Copy test document to ~/Documents')
def open_new_file(context):
global srcdir
- print srcdir+'/test-page-labels.pdf'
+ print(srcdir+'/test-page-labels.pdf')
os.rename(srcdir+'/test-page-labels.pdf',os.environ["HOME"]+'/Documents/test-page-labels.pdf')
@step(u'Remove test document from ~/Documents')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]