Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • A apachedex
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • nexedi
  • apachedex
  • Merge requests
  • !14

Merged
Created Oct 02, 2025 by Jérome Perrin@jeromeOwner

tests: update tests faking stdin

  • 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
Reviewer
Request review from
Time tracking
Source branch: fix/test-reconfigure
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7