fix check error
(cherry picked from commit d8685215bc57ea9167e2c8552c8ac0df31d9e04f)
This commit is contained in:
parent
a413da5145
commit
ffb317759f
25
fix-check-error.patch
Normal file
25
fix-check-error.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From d41056b46a6506a8986371007a3de9004a684d3a Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhangxianting <zhangxianting@uniontech.com>
|
||||||
|
Date: Fri, 16 Aug 2024 16:05:23 +0800
|
||||||
|
Subject: [PATCH] fix check error
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/test_utils.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_utils.py b/tests/test_utils.py
|
||||||
|
index 0b111de..7f77131 100644
|
||||||
|
--- a/tests/test_utils.py
|
||||||
|
+++ b/tests/test_utils.py
|
||||||
|
@@ -52,7 +52,7 @@ class ConfigTests(unittest.TestCase):
|
||||||
|
mock_metrics = mock.MagicMock()
|
||||||
|
er = utils.ErrorReporter(mock_metrics)
|
||||||
|
er.error('foo', 1)
|
||||||
|
- assert mock_metrics.count.called_with('foo', 1)
|
||||||
|
+ assert mock_metrics.count.call_with('foo', 1)
|
||||||
|
|
||||||
|
def test_error_reporter_doesnt_send_log_messages_if_before_deadline(self):
|
||||||
|
mock_logger = mock.MagicMock()
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-jaeger-client
|
Name: python-jaeger-client
|
||||||
Version: 4.8.0
|
Version: 4.8.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Jaeger Python OpenTracing Tracer implementation
|
Summary: Jaeger Python OpenTracing Tracer implementation
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/jaegertracing/jaeger-client-python
|
URL: https://github.com/jaegertracing/jaeger-client-python
|
||||||
Source0: https://files.pythonhosted.org/packages/c6/03/39a1190c987635e2293e59ff462ee9884fdd6184d2c5a25c867b250e6609/jaeger-client-4.8.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/c6/03/39a1190c987635e2293e59ff462ee9884fdd6184d2c5a25c867b250e6609/jaeger-client-4.8.0.tar.gz
|
||||||
|
Patch0: fix-check-error.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
This is a client-side library that can be used to instrument Python apps for distributed trace collection,
|
This is a client-side library that can be used to instrument Python apps for distributed trace collection,
|
||||||
@ -42,7 +43,7 @@ and to send those traces to Jaeger. See the OpenTracing Python API for additiona
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n jaeger-client-4.8.0
|
%autosetup -n jaeger-client-4.8.0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -76,6 +77,9 @@ popd
|
|||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-jaeger-client -f filelist.lst
|
%files -n python3-jaeger-client -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
@ -84,6 +88,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 16 2024 zhangxianting <zhangxianting@uniontech.com> - 4.8.0-3
|
||||||
|
- fix check error
|
||||||
|
|
||||||
* Sat May 11 2024 tzing_t <zhengting13@huawei.com> - 4.8.0-2
|
* Sat May 11 2024 tzing_t <zhengting13@huawei.com> - 4.8.0-2
|
||||||
- fix build error
|
- fix build error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user