Fix tests with ipython 7.12+
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1813075
This commit is contained in:
parent
302f0ca964
commit
69e2318058
|
@ -0,0 +1,32 @@
|
|||
From f5ae85881f47bfffe75ff2826e27d56514d69190 Mon Sep 17 00:00:00 2001
|
||||
From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
|
||||
Date: Mon, 3 Feb 2020 23:05:01 +0100
|
||||
Subject: [PATCH] Fix ipython testing
|
||||
|
||||
Use explicit path in test.
|
||||
---
|
||||
pythran/tests/test_ipython.py | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pythran/tests/test_ipython.py b/pythran/tests/test_ipython.py
|
||||
index f3efd73e9..da6344731 100644
|
||||
--- a/pythran/tests/test_ipython.py
|
||||
+++ b/pythran/tests/test_ipython.py
|
||||
@@ -1,10 +1,15 @@
|
||||
+import os
|
||||
import subprocess
|
||||
from unittest import TestCase
|
||||
|
||||
class TestIpythonMagic(TestCase):
|
||||
|
||||
def test_loadext_and_run(self):
|
||||
- subprocess.check_call(['ipython', 'ipython_script.ipy'])
|
||||
+ subprocess.check_call(['ipython',
|
||||
+ os.path.join(os.path.dirname(__file__),
|
||||
+ 'ipython_script.ipy')])
|
||||
|
||||
def test_loadext_and_run_timeit_twice(self):
|
||||
- subprocess.check_call(['ipython', 'ipython_script_timeit.ipy'])
|
||||
+ subprocess.check_call(['ipython',
|
||||
+ os.path.join(os.path.dirname(__file__),
|
||||
+ 'ipython_script_timeit.ipy')])
|
10
pythran.spec
10
pythran.spec
|
@ -1,6 +1,6 @@
|
|||
Name: pythran
|
||||
Version: 0.9.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Ahead of Time Python compiler for numeric kernels
|
||||
|
||||
# pythran is BSD
|
||||
|
@ -14,6 +14,11 @@ Provides: bundled(libcxx) = 3
|
|||
URL: https://github.com/serge-sans-paille/pythran
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
# Fix ipython testing
|
||||
# Backported from upstream
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1813075
|
||||
Patch1: %{url}/commit/f5ae85881f47bfffe75ff2826e27d56514d69190.patch
|
||||
|
||||
# there is no actual arched content
|
||||
# yet we want to test on all architectures
|
||||
# and we also might need to skip some
|
||||
|
@ -113,6 +118,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|||
%{python3_sitelib}/%{name}-*-py%{python3_version}.egg-info/
|
||||
|
||||
%changelog
|
||||
* Fri Mar 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-2
|
||||
- Fix tests with ipython 7.12+ (#1813075)
|
||||
|
||||
* Fri Jan 31 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-1
|
||||
- Update to 0.9.5 (#1787813)
|
||||
|
||||
|
|
Loading…
Reference in New Issue