From: jgart <jgart@dismail.de>
To: Guix Devel <guix-devel@gnu.org>
Subject: Test Failure when upgrading python-rope
Date: Thu, 26 May 2022 23:02:22 -0500 [thread overview]
Message-ID: <20220526230222.GB25981@gac> (raw)
Hi Guixers,
Can anyone help me debug this test failure for python-rope?
The part that jumps out at me from the traceback is `AssertionError: ('from build import env', 'env') not found in []`
More logs follow:
```
test_a_function_with_different_returns (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_always_returning_containing_class_for_selfs (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_call_function_and_parameters (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_following_function_calls_when_asked_to (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_handling_generator_functions_for_strs (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_invalidating_concluded_data_in_a_function (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_not_reporting_out_of_date_information (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_not_saving_unknown_function_returns (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_properties_and_calling_get_property (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_report_change_in_libutils (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_report_libutils_and_analyze_all_modules (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_set_comprehension (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_soi_on_constructors (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_soi_on_literal_assignment (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_soi_on_typed_assignment (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_class_methods (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_dicts_depending_on_append_function (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_dicts_depending_on_for_loops (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_dicts_depending_on_update (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_dicts_depending_on_update_on_seqs (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_infer_return_typs_from_funcs_based_on_params (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_depending_on_append_function (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_per_object_for_extending_lists (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_per_object_for_fields (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_per_object_for_get_item (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_per_object_for_iters (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_lists_per_object_for_set_item (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_nested_calls (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_sets_per_object_for_set_item (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_for_simple_function_calls (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_not_failing_when_callin_callables (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_static_oi_preventing_soi_maximum_recursion_exceptions (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_using_the_best_callinfo (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_validation_problems_for_changing_builtin_types (ropetest.advanced_oi_test.NewStaticOITest) ... ok
test_validation_problems_for_objectdb_retrievals (ropetest.advanced_oi_test.NewStaticOITest) ... ok
======================================================================
FAIL: test_search_submodule (ropetest.contrib.autoimporttest.AutoImportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/guix-build-python-rope-1.1.1.drv-0/rope-1.1.1/ropetest/contrib/autoimporttest.py", line 121, in test_search_submodule
self.assertIn(import_statement, self.importer.search("env", exact_match=True))
AssertionError: ('from build import env', 'env') not found in []
----------------------------------------------------------------------
Ran 1892 tests in 17.052s
FAILED (failures=1, skipped=33, expected failures=1)
Test failed: <unittest.runner.TextTestResult run=1892 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=1892 errors=0 failures=1>
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test") exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 18.6 seconds
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1
builder for `/gnu/store/9qmc9y88ncsrcpg7kp5jbs9h9dn0x0w2-python-rope-1.1.1.drv' failed with exit code 1
build of /gnu/store/9qmc9y88ncsrcpg7kp5jbs9h9dn0x0w2-python-rope-1.1.1.drv failed
Could not find build log for '/gnu/store/9qmc9y88ncsrcpg7kp5jbs9h9dn0x0w2-python-rope-1.1.1.drv'.
guix build: error: build of `/gnu/store/9qmc9y88ncsrcpg7kp5jbs9h9dn0x0w2-python-rope-1.1.1.drv' failed
```
Here's the package definition so far:
(define-public python-rope
(package
(name "python-rope")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rope" version))
(sha256
(base32
"0bkzwkllxxdxd3w70xiy137lqvnlmmaplsc2ya3s23ss4kq8y10k"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/python-rope/rope")
(synopsis "Refactoring library for Python")
(description "Rope is a refactoring library for Python. It facilitates
the renaming, moving and extracting of attributes, functions, modules, fields
and parameters in Python 2 source code. These refactorings can also be applied
to occurrences in strings and comments.")
(license license:lgpl3+)))
Any advice is much appreciated.
all best,
jgart
next reply other threads:[~2022-05-27 4:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-27 4:02 jgart [this message]
2022-05-27 8:20 ` Test Failure when upgrading python-rope Lars-Dominik Braun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220526230222.GB25981@gac \
--to=jgart@dismail.de \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).