Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 147
    • Merge requests 147
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !2185

Open
Created Nov 05, 2025 by Jérome Perrin@jeromeOwner
  • Report abuse
Report abuse

test_result: fix stopUnitTest on py3

  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 3
Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
    yield
  Module ZPublisher.WSGIPublisher, line 390, in publish_module
    response = _publish(request, new_mod_info)
  Module Products.ERP5Type.patches.WSGIPublisher, line 150, in publish
    return _original_publish(request, module_info)
  Module ZPublisher.WSGIPublisher, line 284, in publish
    result = mapply(obj,
  Module ZPublisher.mapply, line 98, in mapply
    return debug(object, args, context)
  Module ZPublisher.WSGIPublisher, line 68, in call_object
    return obj(*args)
  Module erp5.component.document.erp5_version.ERP5ProjectUnitTestDistributor, line 464, in stopUnitTest
    return portal.portal_task_distribution.stopUnitTest(test_path, status_dict,
  Module erp5.component.tool.erp5_version.TaskDistributionTool, line 260, in stopUnitTest
    line.stop(**status_dict)
  Module Products.ERP5Type.Base, line 264, in __call__
    wf[wf_id].notifyWorkflowMethod(instance, transition_list, args=args, kw=kw)
  Module Products.ERP5Type.Core.Workflow, line 838, in notifyWorkflowMethod
    self._changeStateOf(ob, tdef, kw)
  Module Products.ERP5Type.Core.Workflow, line 520, in _changeStateOf
    state = self._executeTransition(ob, transition, kwargs)
  Module Products.ERP5Type.Core.Workflow, line 1028, in _executeTransition
    script(sci)  # May throw an exception.
  Module Products.ERP5Type.patches.PythonScript, line 182, in __call__
    return self._orig_bindAndExec(args, kw, None)
  Module Shared.DC.Scripts.Bindings, line 372, in _bindAndExec
    return self._exec(bound_data, args, kw)
  Module Products.PythonScripts.PythonScript, line 354, in _exec
    result = function(*args, **kw)
  Module script, line 4, in script_TestResult_complete
   - <Workflow Script at /nexedi/portal_workflow/test_result_workflow/script_TestResult_complete>
   - Line 4
    test_result.setStopDate(kw.get('date') or DateTime())
  Module Products.ERP5Type.Accessor.Alias, line 58, in __call__
    modified_object_list = method(*args, **kw)
  Module Products.ERP5Type.Accessor.Base, line 103, in __call__
    setattr(instance, self._storage_id, self._cast(value))
  Module Products.ERP5Type.Accessor.TypeDefinition, line 71, in asDate
    result = DateTime(value)
  Module DateTime.DateTime, line 446, in __init__
    raise SyntaxError('Unable to parse {}, {}'.format(args, kw))
SyntaxError: Unable to parse (b'2025/11/05 01:31:05',), {}
Edited Nov 05, 2025 by Jérome Perrin
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/test_result_py3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7