[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Team upload for python-jedi



[Piotr Ożarowski]
FYI: I uploaded 0.10.0~git1+f05c071-1 (without running tests during
build for now)

Great. Too bad for the wasted efforts on my end then. *sigh*

As far as testing is concerned, I am forwarding the set of patches
which were necessary to get the tests working on top of 0.9.0.

I'll let you verify whether they still apply on the snapshot you
uploaded regardless. 


Also:

"Drop DPMT from Uploaders (due to problems with multiple tarballs in
git-dpm)"

Then, the package is no longer team-maintained?


Regards,
Ghis
From 4f2f807ca86b2102f720fe383e323bb613e18189 Mon Sep 17 00:00:00 2001
From: Dave Halter <davidhalter88@gmail.com>
Date: Sat, 9 Jul 2016 17:27:57 +0200
Subject: An empty path given to Jedi should not raise errors. Fixes #577.

---
 test/test_integration_import.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/test_integration_import.py b/test/test_integration_import.py
index 6b5ad73a..d961666c 100644
--- a/test/test_integration_import.py
+++ b/test/test_integration_import.py
@@ -18,17 +18,17 @@ def test_goto_definition_on_import():
 def test_complete_on_empty_import():
     assert Script("from datetime import").completions()[0].name == 'import'
     # should just list the files in the directory
-    assert 10 < len(Script("from .", path='').completions()) < 30
+    assert 10 < len(Script("from .", path='whatever.py').completions()) < 30
 
     # Global import
-    assert len(Script("from . import", 1, 5, '').completions()) > 30
+    assert len(Script("from . import", 1, 5, 'whatever.py').completions()) > 30
     # relative import
-    assert 10 < len(Script("from . import", 1, 6, '').completions()) < 30
+    assert 10 < len(Script("from . import", 1, 6, 'whatever.py').completions()) < 30
 
     # Global import
-    assert len(Script("from . import classes", 1, 5, '').completions()) > 30
+    assert len(Script("from . import classes", 1, 5, 'whatever.py').completions()) > 30
     # relative import
-    assert 10 < len(Script("from . import classes", 1, 6, '').completions()) < 30
+    assert 10 < len(Script("from . import classes", 1, 6, 'whatever.py').completions()) < 30
 
     wanted = set(['ImportError', 'import', 'ImportWarning'])
     assert set([c.name for c in Script("import").completions()]) == wanted
From faf18bdf335da4384f321886dfa2167525d65e51 Mon Sep 17 00:00:00 2001
From: Sid Shanker <sshanker220@gmail.com>
Date: Sun, 17 May 2015 23:11:02 -0700
Subject: Fixed utf-8 decoding error in build.

---
 test/run.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/run.py b/test/run.py
index a48e1fb2..d7309143 100755
--- a/test/run.py
+++ b/test/run.py
@@ -290,9 +290,12 @@ def collect_dir_tests(base_dir, test_files, check_thirdparty=False):
                     skip = 'Thirdparty-Library %s not found.' % lib
 
             path = os.path.join(base_dir, f_name)
-            source = open(path).read()
-            if not is_py3:
-                source = unicode(source, 'UTF-8')
+
+            if is_py3:
+                source = open(path, encoding='utf-8').read()
+            else:
+                source = unicode(open(path).read(), 'UTF-8')
+
             for case in collect_file_tests(StringIO(source),
                                            lines_to_execute):
                 case.path = path

Reply to: