Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-01-10 00:10:15 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-01-10 05:45:14 +0300
commite55662961c641c79cccba3deaa20072308136368 (patch)
tree8f9950e842124cf3fcd420a860197388e91cc343 /guiTests
parent9f95c80bcfeadb8f1e7c6837e357b3d6717aff03 (diff)
Update print statements to be compatible with Python 3.
The latest selenium/standalone-firefox image is based on Ubuntu 20.04, which doesn't support Python 2.
Diffstat (limited to 'guiTests')
-rw-r--r--guiTests/guiTest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/guiTests/guiTest.py b/guiTests/guiTest.py
index 882c8b0a6..3c9c8e2bd 100644
--- a/guiTests/guiTest.py
+++ b/guiTests/guiTest.py
@@ -12,7 +12,7 @@ from selenium.webdriver.firefox.options import Options
if "TRAVIS_BUILD_NUMBER" in os.environ:
if "SAUCE_USERNAME" not in os.environ:
- print "No sauce labs login credentials found. Stopping tests..."
+ print("No sauce labs login credentials found. Stopping tests...")
sys.exit(0)
capabilities = {'browserName': "firefox"}
@@ -29,7 +29,7 @@ if "TRAVIS_BUILD_NUMBER" in os.environ:
driver = webdriver.Remote(command_executor="http://%s/wd/hub" % hub_url, desired_capabilities=capabilities)
else:
# local
- print "Using LOCAL webdriver"
+ print("Using LOCAL webdriver")
profile = webdriver.FirefoxProfile()
profile.set_preference("intl.accept_languages", "en")
options = Options()
@@ -198,9 +198,9 @@ wait_for_text(60, "//form[@id='restore']/div[3]/h3/div[1]", "Your files and fold
# hash direct restore files
sha1_direct_restore = sha1_folder(DIRECT_RESTORE_FOLDER)
-print "Source hashes: " + str(sha1_source)
-print "Restore hashes: " + str(sha1_restore)
-print "Direct Restore hashes: " + str(sha1_direct_restore)
+print("Source hashes: " + str(sha1_source))
+print("Restore hashes: " + str(sha1_restore))
+print("Direct Restore hashes: " + str(sha1_direct_restore))
# Tell Sauce Labs to stop the test
driver.quit()