guix-devel
[Top][All Lists]
Advanced

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

Test Failure when upgrading python-rope


From: jgart
Subject: Test Failure when upgrading python-rope
Date: Thu, 26 May 2022 23:02:22 -0500

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]