File: skip-tests.patch

package info (click to toggle)
python-troveclient 1%3A2.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,760 kB
  • sloc: python: 16,424; sh: 95; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Skip failing Py3.7 tests.
Author: Corey Bryant <corey.bryant@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1785293

--- a/troveclient/tests/test_backups.py
+++ b/troveclient/tests/test_backups.py
@@ -15,6 +15,7 @@
 
 import mock
 from mock import patch
+import sys
 import testtools
 import uuid
 
@@ -219,6 +220,8 @@
         self.backups.schedule_delete("dummy", mistral_client)
         cron_triggers.delete.assert_called()
 
+    @testtools.skipIf(sys.version_info.major == 3 and sys.version_info.minor == 7,
+                      "bug/1785293: Skipped by Ubuntu, tests fail for Python 3.7")
     def test_execution_list(self):
         instance = mock.Mock(id='the_uuid')
         wf_input = '{"name": "wf2", "instance": "%s"}' % instance.id