Hello,

I have a strange problem while testing my installation of backintime 1.5.4-rc2


*jeffs@frmwrk16*:~/software/backintime/common$ make test
/home/jeffs/.local/bin/pytest
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-8.3.2, pluggy-1.5.0
rootdir: /home/jeffs/software/backintime/common
*collected 13 items / 20 errors *

============================================================================== 
ERRORS 
===============================================================================
*_________________________________________________________ ERROR collecting test/test_applicationinstance.py _________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_applicationinstance.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_applicationinstance.py:18: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*______________________________________________________________ ERROR collecting test/test_argparser.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_argparser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_argparser.py:12: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_____________________________________________________________ ERROR collecting test/test_backintime.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_backintime.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_backintime.py:12: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_______________________________________________________________ ERROR collecting test/test_backup.py ________________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_backup.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_backup.py:12: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_______________________________________________________________ ERROR collecting test/test_config.py ________________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_config.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_config.py:17: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*___________________________________________________________ ERROR collecting test/test_config_crontab.py ____________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_config_crontab.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_config_crontab.py:21: in <module>
import pyfakefs.fake_filesystem_unittest as pyfakefs_ut
E ModuleNotFoundError: No module named 'pyfakefs'
*_____________________________________________________________ ERROR collecting test/test_configfile.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_configfile.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_configfile.py:15: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_____________________________________________________________ ERROR collecting test/test_diagnostics.py _____________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_diagnostics.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_diagnostics.py:16: in <module>
import diagnostics # testing target
diagnostics.py:24: in <module>
import config
config.py:41: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_____________________________________________________________ ERROR collecting test/test_encfstools.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_encfstools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_encfstools.py:11: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*________________________________________________________________ ERROR collecting test/test_mount.py ________________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_mount.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_mount.py:18: in <module>
import pyfakefs.fake_filesystem_unittest as pyfakefs_ut
E ModuleNotFoundError: No module named 'pyfakefs'
*_________________________________________________________ ERROR collecting test/test_plugin_usercallback.py _________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_plugin_usercallback.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_plugin_usercallback.py:23: in <module>
import pluginmanager
pluginmanager.py:13: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_______________________________________________________________ ERROR collecting test/test_restore.py _______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_restore.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_restore.py:17: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_________________________________________________________________ ERROR collecting test/test_sid.py _________________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_sid.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_sid.py:16: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*_____________________________________________________________ ERROR collecting test/test_snapshotlog.py _____________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_snapshotlog.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_snapshotlog.py:11: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*______________________________________________________________ ERROR collecting test/test_snapshots.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_snapshots.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_snapshots.py:23: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*________________________________________________________ ERROR collecting test/test_snapshots_autoremove.py _________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_snapshots_autoremove.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_snapshots_autoremove.py:31: in <module>
import pyfakefs.fake_filesystem_unittest as pyfakefs_ut
E ModuleNotFoundError: No module named 'pyfakefs'
*______________________________________________________________ ERROR collecting test/test_sshtools.py _______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_sshtools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_sshtools.py:18: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*____________________________________________________________ ERROR collecting test/test_takeSnapshot.py _____________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_takeSnapshot.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_takeSnapshot.py:17: in <module>
from test import generic
test/generic.py:27: in <module>
import tools
tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*________________________________________________________________ ERROR collecting test/test_tools.py ________________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_tools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_tools.py:28: in <module>
import pyfakefs.fake_filesystem_unittest as pyfakefs_ut
E ModuleNotFoundError: No module named 'pyfakefs'
*____________________________________________________________ ERROR collecting test/test_uniquenessset.py ____________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/common/test/test_uniquenessset.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_uniquenessset.py:15: in <module>
import pyfakefs.fake_filesystem_unittest as pyfakefs_ut
E ModuleNotFoundError: No module named 'pyfakefs'
*====================================================================== short test summary info ======================================================================*
ERROR test/test_applicationinstance.py
ERROR test/test_argparser.py
ERROR test/test_backintime.py
ERROR test/test_backup.py
ERROR test/test_config.py
ERROR test/test_config_crontab.py
ERROR test/test_configfile.py
ERROR test/test_diagnostics.py
ERROR test/test_encfstools.py
ERROR test/test_mount.py
ERROR test/test_plugin_usercallback.py
ERROR test/test_restore.py
ERROR test/test_sid.py
ERROR test/test_snapshotlog.py
ERROR test/test_snapshots.py
ERROR test/test_snapshots_autoremove.py
ERROR test/test_sshtools.py
ERROR test/test_takeSnapshot.py
ERROR test/test_tools.py
ERROR test/test_uniquenessset.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 20 
errors during collection 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================== *20 errors*in 0.45s =========================================================================
make: *** [Makefile:615: unittest] Error 2
*jeffs@frmwrk16*:~/software/backintime/common$
*jeffs@frmwrk16*:~/software/backintime/common$ echo $PYTHONPATH

*jeffs@frmwrk16*:~/software/backintime/common$ python --version
Python 3.12.3
*jeffs@frmwrk16*:~/software/backintime/common$ which python
/usr/bin/python
*jeffs@frmwrk16*:~/software/backintime/common$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Jun 13  2023*/usr/bin/python* ->*python3*
*jeffs@frmwrk16*:~/software/backintime/common$ which python3
/usr/bin/python3
*jeffs@frmwrk16*:~/software/backintime/common$ ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 10 Aug  7  2024*/usr/bin/python3* ->*python3.12*
*jeffs@frmwrk16*:~/software/backintime/common$ ls -l /usr/bin/python3.12
-rwxr-xr-x 1 root root 8019136 Feb  4 06:48*/usr/bin/python3.12*
*jeffs@frmwrk16*:~/software/backintime/common$ /usr/bin/python3.12 --version
Python 3.12.3
*jeffs@frmwrk16*:~/software/backintime/common$ python
Python 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import pyfakefs
import dbus
print(dbus.__file..)
  File "<stdin>", line 1
    print(dbus.__file..)
                      ^
SyntaxError: invalid syntax
print(dbus.__file__)
/usr/lib/python3/dist-packages/dbus/__init__.py
print(pyfakefs.__file__)
/usr/local/lib/python3.12/dist-packages/pyfakefs/__init__.py
print(pyfakefs.__version__)
5.8.0



What makes this strange in my mind is that if I use a little bash magic, then testing works fine.

*jeffs@frmwrk16*:~/software/backintime/common$for P in test/test*.py; do echo "|+|+|+|+| $P |+|+|+|+|+|"; python -m pytest $P; done
|+|+|+|+| test/test_applicationinstance.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 19 items *

test/test_applicationinstance.py................... [100%]

======================================================================== *19 passed*in 0.11s =========================================================================
|+|+|+|+| test/test_argparser.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 21 items *

test/test_argparser.py..................... [100%]

======================================================================== *21 passed*in 1.01s =========================================================================
|+|+|+|+| test/test_backintime.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 3 items *

test/test_backintime.py... [100%]

========================================================================= *3 passed*in 3.21s =========================================================================
|+|+|+|+| test/test_backup.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 15 items *

test/test_backup.py............... [100%]

======================================================================== *15 passed*in 0.54s =========================================================================
|+|+|+|+| test/test_config_crontab.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 3 items *

test/test_config_crontab.py... [100%]

========================================================================= *3 passed*in 0.08s =========================================================================
|+|+|+|+| test/test_configfile.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 54 items *

test/test_configfile.py...................................................... 
[100%]

======================================================================== *54 passed*in 0.09s =========================================================================
|+|+|+|+| test/test_config.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 17 items *

test/test_config.py................. [100%]

======================================================================== *17 passed*in 0.32s =========================================================================
|+|+|+|+| test/test_diagnostics.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 5 items *

test/test_diagnostics.py..... [100%]

========================================================================= *5 passed*in 0.15s =========================================================================
|+|+|+|+| test/test_encfstools.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 1 item *

test/test_encfstools.py. [100%]

========================================================================= *1 passed*in 0.06s =========================================================================
|+|+|+|+| test/test_languages.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 2 items *

test/test_languages.py.. [100%]

========================================================================= *2 passed*in 0.01s =========================================================================
|+|+|+|+| test/test_lint.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 6 items *

test/test_lint.pyssssss [100%]

======================================================================== *6 skipped*in 0.01s =========================================================================
|+|+|+|+| test/test_mount.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 7 items *

test/test_mount.py....... [100%]

========================================================================= *7 passed*in 0.11s =========================================================================
|+|+|+|+| test/test_plugin_usercallback.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 9 items *

test/test_plugin_usercallback.py......... [100%]

========================================================================= *9 passed*in 2.36s =========================================================================
|+|+|+|+| test/test_restore.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 11 items *

test/test_restore.py.........ss[100%]

=================================================================== *9 passed*,2 skippedin 1.44s ====================================================================
|+|+|+|+| test/test_schedule.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 2 items *

test/test_schedule.py.. [100%]

========================================================================= *2 passed*in 0.01s =========================================================================
|+|+|+|+| test/test_sid.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 43 items *

test/test_sid.py........................................... [100%]

======================================================================== *43 passed*in 0.19s =========================================================================
|+|+|+|+| test/test_singleton.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 3 items *

test/test_singleton.py... [100%]

========================================================================= *3 passed*in 0.01s =========================================================================
|+|+|+|+| test/test_snapshotlog.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 10 items *

test/test_snapshotlog.py.......... [100%]

======================================================================== *10 passed*in 0.09s =========================================================================
|+|+|+|+| test/test_snapshots_autoremove.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 20 items *

test/test_snapshots_autoremove.py.................... [100%]

======================================================================== *20 passed*in 0.16s =========================================================================
|+|+|+|+| test/test_snapshots.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 45 items *

test/test_snapshots.py.........................................ssss[100%]

=================================================================== *41 passed*,4 skippedin 0.33s ===================================================================
|+|+|+|+| test/test_sshtools.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 36 items *

test/test_sshtools.pysssssssssssssssssssss..s.ssssss..... [100%]

=================================================================== *8 passed*,28 skippedin 0.49s ===================================================================
|+|+|+|+| test/test_takeSnapshot.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 18 items *

test/test_takeSnapshot.py.........sssssssss[100%]

=================================================================== *9 passed*,9 skippedin 1.52s ====================================================================
|+|+|+|+| test/test_tools.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 64 items *

test/test_tools.py................................................................
 [100%]

======================================================================== *64 passed*in 1.47s =========================================================================
|+|+|+|+| test/test_uniquenessset.py |+|+|+|+|+|
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/common
plugins: pyfakefs-5.8.0
*collected 7 items *

test/test_uniquenessset.py....... [100%]

========================================================================= *7 passed*in 0.06s =========================================================================
*jeffs@frmwrk16*:~/software/backintime/common$



Also, CONTRIBUTING.md has an instruction to test the GUI, this doesn't do anything (as of this writing)

*jeffs@frmwrk16*:~/software/backintime/qt$ make test
make: Nothing to be done for 'test'.
*jeffs@frmwrk16*:~/software/backintime/qt$ pwd
/home/jeffs/software/backintime/qt
*jeffs@frmwrk16*:~/software/backintime/qt$ make test
make: Nothing to be done for 'test'.
*jeffs@frmwrk16*:~/software/backintime/qt$

But in fact, you have some tests in there.  And here I run into the same problem.  There is something that pytest does to the PYTHONPATH or something like that.  This works:

*jeffs@frmwrk16*:~/software/backintime/qt$ python -m pytest test/
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/jeffs/software/backintime/qt
plugins: pyfakefs-5.8.0
*collected 9 items *

test/test_lint.pysssss[ 55%]
test/test_statedata.py.... [100%]

=================================================================== *4 passed*,5 skippedin 0.03s ====================================================================
**

But this does not:

*jeffs@frmwrk16*:~/software/backintime/qt$ pytest test/
*======================================================================== test session starts ========================================================================*
platform linux -- Python 3.12.3, pytest-8.3.2, pluggy-1.5.0
rootdir: /home/jeffs/software/backintime/qt
*collected 5 items / 1 error *

============================================================================== 
ERRORS 
===============================================================================
*______________________________________________________________ ERROR collecting test/test_statedata.py ______________________________________________________________* ImportError while importing test module '/home/jeffs/software/backintime/qt/test/test_statedata.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_statedata.py:13: in <module>
import statedata # noqa: E402
statedata.py:20: in <module>
import tools # noqa: E402
../common/tools.py:63: in <module>
import dbus
E ModuleNotFoundError: No module named 'dbus'
-------------------------------------------------------------------------- 
Captured stderr 
--------------------------------------------------------------------------
WARNING: 'import keyring' failed with: ModuleNotFoundError("No module named 
'keyring'")
*====================================================================== short test summary info ======================================================================*
ERROR test/test_statedata.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 
error during collection 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================= *1 error*in 0.10s ==========================================================================
*jeffs@frmwrk16*:~/software/backintime/qt$


My understanding is that running python the with -m pytest option is equivalent to running pytest, obviously, my understanding is wrong.



Thank you for your kind assistance.


Jeff Silverman
[email protected]

_______________________________________________
Bit-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/bit-dev.python.org/
Member address: [email protected]

Reply via email to