Open kloczek opened 2 years ago
Can you reproduce the test failure with unittest?
I'm reporting issue using pytest.
Just tested 0.21.1. Here is the result
Here is list of installed modules in build env
What should be passed in that $DULWICH_SWIFT_CFG env variable? 🤔
I'v retested 0.21.7 and now pytest still fails.
I found that all dulwich/contrib/test_swift_smoke.py
units fails can be solved with patch:
--- a/dulwich/contrib/test_swift_smoke.py
+++ b/dulwich/contrib/test_swift_smoke.py
@@ -40,6 +40,7 @@
import gevent
from gevent import monkey
+import pytest
monkey.patch_all()
@@ -68,6 +69,8 @@
return swift.SwiftRepo(path, conf=swift.load_conf())
+@pytest.mark.skipif(os.getenv("DULWICH_SWIFT_CFG") == None,
+ reason="Missi Swift cluster configuration file in $DULWICH_SWIFT_CFG env variable.",)
class SwiftRepoSmokeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
Please let me know if you want tis as PR.
Still with that patch two unit are failing and there are some warnings as well
Thanks but that adds a dependency on pytest, even for regular builds that don't use it.
Looks like with new version pytest is failing in new unit.
pytest as you see still shows some warnings as well.
List of modules installed in build env