https://bugzilla.redhat.com/show_bug.cgi?id=2307912



--- Comment #11 from MartinKG <[email protected]> ---
the file `pyliblo3/__init__.py` now only contains these three lines:

```python
 from ._liblo import *
```

$ rpmbuild -bs pyliblo3.spec
$ mock -r fedora-40-x86_64 ../SRPMS/pyliblo3-0.16.2-0.3.git91d1781.fc40.src.rpm


+ PYTHONDONTWRITEBYTECODE=1
+ PYTEST_ADDOPTS='
--ignore=/builddir/build/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/.pyproject-builddir'
+ PYTEST_XDIST_AUTO_NUM_WORKERS=2
+ /usr/bin/python3 -P -m unittest discover -s ./test -p '*.py'
E
======================================================================
ERROR: unit (unittest.loader._FailedTest.unit)
----------------------------------------------------------------------
ImportError: Failed to import test module: unit
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 339, in
_get_module_from_name
    __import__(name)
  File
"/builddir/build/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/test/unit.py",
line 246, in <module>
    class DecoratorTestCase(unittest.TestCase):
  File
"/builddir/build/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/test/unit.py",
line 247, in DecoratorTestCase
    class TestServer(liblo.Server):
                     ^^^^^^^^^^^^
AttributeError: module 'pyliblo3' has no attribute 'Server'

----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
RPM build errors:

I just can't get it to work.
maybe you can send me your pyliblo3.src.rpm file.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2307912

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202307912%23c11

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to