forked from pool/python-python-ptrace
Accepting request 527221 from home:mimi_vx:branches:devel:languages:python
- add test_strace.patch - fixes build OBS-URL: https://build.opensuse.org/request/show/527221 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=7
This commit is contained in:
22
test_strace.patch
Normal file
22
test_strace.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 5fdd17949add0234fe71c87112c6453a4617708a Mon Sep 17 00:00:00 2001
|
||||
From: Victor Stinner <victor.stinner@gmail.com>
|
||||
Date: Mon, 18 Sep 2017 17:14:26 +0200
|
||||
Subject: [PATCH] Fix test_strace.test_open(): accept openat()
|
||||
|
||||
---
|
||||
tests/test_strace.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_strace.py b/tests/test_strace.py
|
||||
index 2c57c97..261a0ec 100755
|
||||
--- a/tests/test_strace.py
|
||||
+++ b/tests/test_strace.py
|
||||
@@ -61,7 +61,7 @@ def test_open(self):
|
||||
else:
|
||||
code = 'open(%r).close()' % __file__
|
||||
self.assert_syscall(code,
|
||||
- br"^open\(.*test_strace\.pyc?', O_RDONLY(\|O_CLOEXEC)?")
|
||||
+ br"^open(at)?\(.*test_strace\.pyc?', O_RDONLY(\|O_CLOEXEC)?")
|
||||
|
||||
def test_chdir(self):
|
||||
self.assert_syscall(
|
Reference in New Issue
Block a user