Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • A apachedex
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • nexedinexedi
  • apachedex
  • Merge requests
  • !14

tests: update tests faking stdin

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge jerome/apachedex:fix/test-reconfigure into master Oct 02, 2025
  • Overview 3
  • Commits 1
  • Changes 1

since d7f80021 (Fix support for files containing non-ascii chars., 2024-06-12) we need sys.stdin which supports reconfigure.

Before this change, we had failures like this:

       ======================================================================
       ERROR: test_timestamp_mixed_in_timestamp (apachedex.tests.TestMalformedInput.test_timestamp_mixed_in_timestamp)
       ----------------------------------------------------------------------
       Traceback (most recent call last):
       File "/srv/slapgrid/slappart15/srv/project/apachedex/apachedex/tests.py", line 51, in test_timestamp_mixed_in_timestamp
       apachedex.main()
       File "/srv/slapgrid/slappart15/srv/project/apachedex/apachedex/__init__.py", line 1380, in wrapper
       return func(*args, **kw)
              ^^^^^^^^^^^^^^^^^
       File "/srv/slapgrid/slappart15/srv/project/apachedex/apachedex/__init__.py", line 1644, in main
       logfile.reconfigure(
       ^^^^^^^^^^^^^^^^^^^
       AttributeError: '_io.StringIO' object has no attribute 'reconfigure'
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/test-reconfigure
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7