Your message dated Sun, 10 Nov 2024 18:20:36 +0000
with message-id <e1tacy8-00fbyd...@fasolo.debian.org>
and subject line Bug#998297: fixed in mu-editor 1.2.0+dfsg-1
has caused the Debian Bug report #998297,
regarding mu-editor: FTBFS: AssertionError: Expected 'SendScintilla' to be 
called once. Called 0 times.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
998297: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998297
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: mu-editor
Version: 1.1.0~alpha2+dfsg1-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

mu-editor/experimental recently started to FTBFS:

=================================== FAILURES ===================================
_________________________ test_tidy_code_valid_python __________________________

    @pytest.mark.skipif(sys.version_info < (3, 6), reason="Requires Python3.6")
    def test_tidy_code_valid_python():
        """
        Ensure the "good case" works as expected (the code is reformatted and Mu
        shows a status message to confirm so).
        """
        mock_view = mock.MagicMock()
        mock_view.current_tab.text.return_value = "print('hello')"
        ed = mu.logic.Editor(mock_view)
        ed.show_status_message = mock.MagicMock()
        ed.tidy_code()
        tab = mock_view.current_tab
>       tab.SendScintilla.assert_called_once_with(tab.SCI_SETTEXT,
                                                  b'print("hello")\n')

tests/test_logic.py:3474: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <MagicMock name='mock.current_tab.SendScintilla' id='140677592560880'>
args = (<MagicMock name='mock.current_tab.SCI_SETTEXT' id='140677592488640'>, 
b'print("hello")\n')
kwargs = {}, msg = "Expected 'SendScintilla' to be called once. Called 0 times."

    def assert_called_once_with(self, /, *args, **kwargs):
        """assert that the mock was called exactly once and that that call was
        with the specified arguments."""
        if not self.call_count == 1:
            msg = ("Expected '%s' to be called once. Called %s times.%s"
                   % (self._mock_name or 'mock',
                      self.call_count,
                      self._calls_repr()))
>           raise AssertionError(msg)
E           AssertionError: Expected 'SendScintilla' to be called once. Called 
0 times.

/usr/lib/python3.9/unittest/mock.py:918: AssertionError
------------------------------ Captured log call -------------------------------
ERROR    mu.logic:logic.py:1508 cannot import name 'PY36_VERSIONS' from 'black' 
(/usr/lib/python3/dist-packages/black/__init__.py)
=============================== warnings summary ===============================
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_with_attached_known_device_and_forced
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_forced_with_attached_device_as_not_windows
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_force_flash_user_specified_device_path
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_force_flash_empty_script
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_force_with_attached_device_as_windows
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_device_has_latest_firmware_encounters_serial_problem_windows
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_with_attached_device_has_latest_firmware_encounters_problem
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_device_has_latest_firmware_encounters_serial_problem_unix
.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py::test_flash_with_attached_device_has_latest_firmware
  
/build/mu-editor-1.1.0~alpha2+dfsg1/.pybuild/cpython3_3.9_mu-editor/build/mu/modes/microbit.py:256:
 DeprecationWarning: Function 'semver.parse' is deprecated. Deprecated since 
version 2.10.0.  This function will be removed in semver 3. Use the respective 
'semver.VersionInfo.parse' instead.
    semver.parse(version_info['release'])

.pybuild/cpython3_3.9_mu-editor/build/tests/modes/test_microbit.py: 10 warnings
  
/build/mu-editor-1.1.0~alpha2+dfsg1/.pybuild/cpython3_3.9_mu-editor/build/mu/modes/microbit.py:272:
 DeprecationWarning: Function 'semver.compare' is deprecated. Deprecated since 
version 2.10.0.  This function will be removed in semver 3. Use the respective 
'semver.VersionInfo.compare' instead.
    if semver.compare(board_version,

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED tests/test_logic.py::test_tidy_code_valid_python - AssertionError: Exp...
================== 1 failed, 820 passed, 19 warnings in 6.51s ==================
E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd 
'/build/mu-editor-1.1.0~alpha2+dfsg1/.pybuild/cpython3_3.9_mu-editor/build'; 
python3.9 -m pytest --random-order
Traceback (most recent call last):
  File "/usr/bin/pybuild", line 352, in main
    run(func, i, version, c)
  File "/usr/bin/pybuild", line 302, in run
    result = func(context, args)
  File "/usr/share/dh-python/dhpython/build/base.py", line 282, in wrapped_func
    raise Exception(msg)
Exception: exit code=1: cd 
'/build/mu-editor-1.1.0~alpha2+dfsg1/.pybuild/cpython3_3.9_mu-editor/build'; 
python3.9 -m pytest --random-order
        rm -fr -- /tmp/dh-xdg-rundir-Uw9IX9A5
dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit 
code 13
make[1]: *** [debian/rules:42: override_dh_auto_test] Error 25


Andreas

Attachment: mu-editor_1.1.0~alpha2+dfsg1-1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: mu-editor
Source-Version: 1.2.0+dfsg-1
Done: Georges Khaznadar <georg...@debian.org>

We believe that the bug you reported is fixed in the latest version of
mu-editor, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 998...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Georges Khaznadar <georg...@debian.org> (supplier of updated mu-editor package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 08 Nov 2024 16:13:03 +0100
Source: mu-editor
Architecture: source
Version: 1.2.0+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Georges Khaznadar <georg...@debian.org>
Changed-By: Georges Khaznadar <georg...@debian.org>
Closes: 998297 1027378 1067972 1079039 1079233 1081083
Changes:
 mu-editor (1.2.0+dfsg-1) unstable; urgency=medium
 .
   [ Nick Morrott ]
   * New upstream version 1.1.0~alpha2+dfsg1
 .
   [ Alexandre Detiste ]
   * remove extraneous dependency on python3-mock
   * New upstream version 1.2.0+dfsg
 .
   [ Nick Morrott ]
   * d/control: refresh long descriptions with new modes
   * d/copyright: refresh in preparation for import of 1.1.0-alpha
 .
   [ Georges Khaznadar ]
   * declared myself as maintainer. Closes: #1079233
   * updated debian patches, some of them are deleted.
   * patched one test, because the module adafruit_board_toolkit is missing
   * stable is now bookworm, so we may disregard #1027378. Closes: #1027378
   * patched some tests. Closes: #998297; Closes: #1081083
   * removed the build-dependency on python3-apprdirs. Closes: #1067972
   * added build dependencies: python3-virtualenv, black
   * bumped Standards-Version: 4.7.0
   * applied Petter Reinholdtsen's patch, to enrich metadata. Closes: #1079039
   * patched mu/weels/__init__.py to define a standard writable location
     path for the wheel ZIP file (outside the applications's path!)
Checksums-Sha1:
 5f3ed0f97423c6440554a87cda45f85657e29746 2427 mu-editor_1.2.0+dfsg-1.dsc
 5e2cca379a11282cef08325434c2a6d054edb4ad 4571900 
mu-editor_1.2.0+dfsg.orig.tar.xz
 1028dbf7b31fd90f1f441de507a51704c9f4ecc3 18416 
mu-editor_1.2.0+dfsg-1.debian.tar.xz
 5e8a85bace30c773d6252a5c9a586d90b67b411e 18267 
mu-editor_1.2.0+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 01e520ec99fa6dec31e45305eba936b7ad501f8b3e5751a763c01cd46d3c3dcd 2427 
mu-editor_1.2.0+dfsg-1.dsc
 0b06e815a9d0d0a9296c0604c013dd274bd0c954c61fcf1b1ff12df876c5b10a 4571900 
mu-editor_1.2.0+dfsg.orig.tar.xz
 108e150c24b31e0ae31d3447a9e6c508c54c59cbfa75161aba1570d4410cfa6d 18416 
mu-editor_1.2.0+dfsg-1.debian.tar.xz
 0d9f94baba3d5c6040ca322e65d16e2c2a48c8856e29b262c5750fb581193106 18267 
mu-editor_1.2.0+dfsg-1_amd64.buildinfo
Files:
 019e27991d5d56dcd22e46c112ddb515 2427 python optional 
mu-editor_1.2.0+dfsg-1.dsc
 fc91b552e34a6bd3a5c34b6c7f5683df 4571900 python optional 
mu-editor_1.2.0+dfsg.orig.tar.xz
 e56990ab22ad71a4ff1391078db9b84f 18416 python optional 
mu-editor_1.2.0+dfsg-1.debian.tar.xz
 48ef7190e39c7e7d85f35844d47205c0 18267 python optional 
mu-editor_1.2.0+dfsg-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEM0CzZP9nFT+3zK6FHCgWkHE2rjkFAmcw834ACgkQHCgWkHE2
rjnhIw//el/JA/VTIM8e7Ts7rf2yZnqxhvz7cY/9+Ao4P4V/KEq7F9OrCa01NHsE
jI/sMxFhV1eEN8J8R7nxwLOaMSBedA67pCCGRruObpDmCQSYZtCtnxen/zZLDD5d
OCnK/AUR6WKt4xwHVc/uyRxzXH16IrqWXZ+H05lYbym3hiyr/URkOyAc0zcahtzZ
3SvYIdSnIgXcDakX2kYmBjpXiImBVbHDv9ExWLpzfxPbgyh9eraMHqPYPh/iI7YD
gfO9BaTLddO/eRzDagzzF5WlVIahCSEX2p8qqvdanp18bknllBJ8Ix3xhN7xCkuY
KDlZD9j2hJziWA+ExKhE9IvDi03tKDt1cg3zoywHvcsibJRVAFJ8RBR68ZGN2k9V
aM1ECRvRsYci7+C5sBTPQbxIRThyAvgGsxBVLiE+7wQ/+kd+Ed/Qjv9d1KDOlzK/
RztKBBLTZDdaGdxCdzhhuAgvd+jG40uxAyAIH8ws1xCQ9TmBm0kWhzefPYOMc4tj
DFfKnFVmQs9C3jqCarb1tpuMymPqkyVh6+4DaXkn9snUqbL/hxbip4JwRfpy/P7o
n3XlxfgUcaKBKKx6VInNE2xFXf2ZwsYWKFDZEVNxHIgjWhilsxHDk+tNhe9Tqjzp
ZLWF5RdiC5Pk1xcwHeV7flKTeGDTQzMoiwjY1MbDWgRjcUzgE90=
=9EU8
-----END PGP SIGNATURE-----

Attachment: pgpiDuiyHcx7Z.pgp
Description: PGP signature


--- End Message ---

Reply via email to