python-bokeh/bokeh-sys-executable.patch
Matej Cepl e1c1c5c166 Accepting request 1033858 from home:bnavigator:branches:devel:languages:python:numeric
- Update to version 3.0.1
  * point release that addresses an issue with runtime dependencies
- Add patches for test suite:
  * bokeh-remove-mock.patch gh#bokeh/bokeh#12561
  * bokeh-sys-executable.patch gh#bokeh/bokeh#12563
- Update to version 3.0.0
  * Bokeh Version 3.0.0 is a major milestone of Bokeh project.
  ## Major changes
  * Support for legacy web browser (e.g. IE, non-ES6 compliant) was
    removed
  * Official support for Python 3.7 was removed and for 3.10 added
  * Layout and CSS interoperability was redesigned and greatly
    improved
  * Serialization protocol was redesigned and vastly improved
  * CSS was modularized and all UI components are now Web
    components
  * Django integration was moved to
    https://github.com/bokeh/bokeh-django
  ## Minor changes
  * Support added for favicon.ico files
  * Initial import times reduced
  * Support added for new selection policy NodesAndAdjacentNodes
  * Plot.remove_tools() function added
- Drop bokeh-pr12218-Pillow9.2.patch

OBS-URL: https://build.opensuse.org/request/show/1033858
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-bokeh?expand=0&rev=61
2022-11-07 10:13:11 +00:00

27 lines
981 B
Diff

diff --git a/tests/support/plugins/bokeh_server.py b/tests/support/plugins/bokeh_server.py
index c37f31bfa..50d786a4b 100644
--- a/tests/support/plugins/bokeh_server.py
+++ b/tests/support/plugins/bokeh_server.py
@@ -55,7 +55,7 @@ __all__ = (
def bokeh_server(request: pytest.FixtureRequest, log_file: IO[str]) -> str:
bokeh_port: int = request.config.option.bokeh_port
- cmd = ["python", "-m", "bokeh", "serve"]
+ cmd = [sys.executable, "-m", "bokeh", "serve"]
argv = [f"--port={bokeh_port}"]
bokeh_server_url = f"http://localhost:{bokeh_port}"
diff --git a/tests/test_examples.py b/tests/test_examples.py
index 7072f2f88..1dfb1a4e8 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -268,7 +268,7 @@ with open(filename, 'rb') as example:
exec(compile(example.read(), filename, 'exec'))
"""
- cmd = ["python", "-c", code]
+ cmd = [sys.executable, "-c", code]
cwd = dirname(example.path)
env = os.environ.copy()