summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch16
1 files changed, 2 insertions, 14 deletions
diff --git a/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch b/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch
index fa58897e68..274f6f527b 100644
--- a/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch
+++ b/meta-python/recipes-devtools/python/python3-yappi/0001-Fix-imports-for-ptests.patch
@@ -8,10 +8,9 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
8 tests/test_asyncio.py | 2 +- 8 tests/test_asyncio.py | 2 +-
9 tests/test_asyncio_context_vars.py | 2 +- 9 tests/test_asyncio_context_vars.py | 2 +-
10 tests/test_functionality.py | 2 +- 10 tests/test_functionality.py | 2 +-
11 tests/test_gevent.py | 2 +-
12 tests/test_hooks.py | 2 +- 11 tests/test_hooks.py | 2 +-
13 tests/test_tags.py | 2 +- 12 tests/test_tags.py | 2 +-
14 6 files changed, 6 insertions(+), 6 deletions(-) 13 5 files changed, 6 insertions(+), 6 deletions(-)
15 14
16--- a/tests/test_asyncio.py 15--- a/tests/test_asyncio.py
17+++ b/tests/test_asyncio.py 16+++ b/tests/test_asyncio.py
@@ -23,7 +22,7 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
23+from .utils import YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io 22+from .utils import YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io
24 23
25 24
26 @asyncio.coroutine 25 async def async_sleep(sec):
27--- a/tests/test_asyncio_context_vars.py 26--- a/tests/test_asyncio_context_vars.py
28+++ b/tests/test_asyncio_context_vars.py 27+++ b/tests/test_asyncio_context_vars.py
29@@ -5,7 +5,7 @@ import contextvars 28@@ -5,7 +5,7 @@ import contextvars
@@ -3870,17 +3869,6 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
3870+ # import sys;sys.argv = ['', 'BasicUsage.test_run_as_script'] 3869+ # import sys;sys.argv = ['', 'BasicUsage.test_run_as_script']
3871+ # import sys;sys.argv = ['', 'MultithreadedScenarios.test_subsequent_profile'] 3870+ # import sys;sys.argv = ['', 'MultithreadedScenarios.test_subsequent_profile']
3872+ unittest.main() 3871+ unittest.main()
3873--- a/tests/test_gevent.py
3874+++ b/tests/test_gevent.py
3875@@ -4,7 +4,7 @@ import yappi
3876 import gevent
3877 from gevent.event import Event
3878 import threading
3879-from utils import (
3880+from .utils import (
3881 YappiUnitTestCase, find_stat_by_name, burn_cpu, burn_io,
3882 burn_io_gevent
3883 )
3884--- a/tests/test_hooks.py 3872--- a/tests/test_hooks.py
3885+++ b/tests/test_hooks.py 3873+++ b/tests/test_hooks.py
3886@@ -5,7 +5,7 @@ import unittest 3874@@ -5,7 +5,7 @@ import unittest