This is an automated email from the ASF dual-hosted git repository. kentontaylor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 7a56c3f6f5b00e620650e3f14e424343c737c8ae Author: Dave Brondsema <[email protected]> AuthorDate: Fri Jan 13 13:30:40 2023 -0500 [#8489] py3.8: regex reprs change too much (esp. with our re/regex lib swap) so use simpler function as our example task --- Allura/allura/tests/functional/test_site_admin.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Allura/allura/tests/functional/test_site_admin.py b/Allura/allura/tests/functional/test_site_admin.py index cc5797890..b926745d1 100644 --- a/Allura/allura/tests/functional/test_site_admin.py +++ b/Allura/allura/tests/functional/test_site_admin.py @@ -128,17 +128,17 @@ class TestSiteAdmin(TestController): assert 'math.ceil' in r, r def test_task_view(self): - import re - task = M.MonQTask.post(re.search, ('pattern', 'string'), {'flags': re.I}) + import math + task = M.MonQTask.post(math.isclose, (99, 100), {'abs_tol': 1.1}) url = '/nf/admin/task_manager/view/%s' % task._id r = self.app.get( url, extra_environ=dict(username='*anonymous'), status=302) r = self.app.get(url) - assert 'regex.regex.search' in r, r - assert '<td>pattern</td>' in r, r - assert '<td>string</td>' in r, r - assert '<th class="second-column-headers side-header">flags</th>' in r, r - assert f'<td>{re.I}</td>' in r, r + assert 'math.isclose' in r, r + assert '<td>99</td>' in r, r + assert '<td>100</td>' in r, r + assert '<th class="second-column-headers side-header">abs_tol</th>' in r, r + assert '<td>1.1</td>' in r, r assert 'ready' in r, r # test resubmit too
