breezy/skip_resource.setrlimit.patch
Antonio Larrosa e3bf02766b Accepting request 855331 from home:mcepl:branches:devel:tools:scm
- Require the full python3 stdlib for sqlite3 import
  gh#openSUSE/python-rpm-macros#66

- Add skip_resource.setrlimit.patch to avoid tests failing in the limit
  environment of osc build, where resource.setrlimit() doesn't work
  (lp#1883125).

OBS-URL: https://build.opensuse.org/request/show/855331
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/breezy?expand=0&rev=12
2020-12-15 13:27:45 +00:00

18 lines
713 B
Diff

--- a/breezy/tests/blackbox/test_big_file.py
+++ b/breezy/tests/blackbox/test_big_file.py
@@ -67,10 +67,11 @@ class TestAdd(tests.TestCaseWithTranspor
def setUp(self):
super(TestAdd, self).setUp()
- previous = resource.getrlimit(RESOURCE)
- self.addCleanup(resource.setrlimit, RESOURCE, previous)
- resource.setrlimit(RESOURCE, (LIMIT, -1))
+ # previous = resource.getrlimit(RESOURCE)
+ # self.addCleanup(resource.setrlimit, RESOURCE, previous)
+ # resource.setrlimit(RESOURCE, (LIMIT, -1))
+ @tests.unittest.skip("Test doesn't work without resource.setrlimit")
def test_allocate(self):
def allocate():
"." * BIG_FILE_SIZE