File: PR36.patch

package info (click to toggle)
nb2plots 0.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,160 kB
  • sloc: python: 5,223; makefile: 225
file content (28 lines) | stat: -rw-r--r-- 1,210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 7c808716039ec1e49ba591ac44baf149e547c1e9 Mon Sep 17 00:00:00 2001
From: Sandro Tosi <sandrotosi@users.noreply.github.com>
Date: Wed, 24 Jan 2024 02:32:12 -0500
Subject: [PATCH] tests: replace relative imports with absolute ones in
 test_from_notebook.py

This is part of Debian tests, where we run tests against the installed version of a module; being relative imports means tests wont find them, while making them absolute, they are detected properly
---
 nb2plots/tests/test_from_notebook.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nb2plots/tests/test_from_notebook.py b/nb2plots/tests/test_from_notebook.py
index 13f7ce2..e7f648a 100644
--- a/nb2plots/tests/test_from_notebook.py
+++ b/nb2plots/tests/test_from_notebook.py
@@ -5,9 +5,9 @@
 
 import nbformat
 
-from ..from_notebook import (convert_nb, convert_nb_fname, to_doctests,
-                             has_mpl_inline, CODE_WITH_OUTPUT)
-from ..testing import stripeq
+from nb2plots.from_notebook import (convert_nb, convert_nb_fname, to_doctests,
+                                    has_mpl_inline, CODE_WITH_OUTPUT)
+from nb2plots.testing import stripeq
 
 
 DATA_PATH = pjoin(dirname(__file__), 'data')