Skip to content
Snippets Groups Projects
  1. May 16, 2022
  2. Oct 28, 2021
    • Georges Racinet's avatar
      Tests: force pytest<6 to workaround problem with error.Hint · 09870b83b236
      Georges Racinet authored
      This solves this problem in tests of testhelpers:
      
              # actual error is FilteredRepoLookupError up to 5.9 and will
              # be InputError in 6.0 (current default head of Mercurial, does not
              # bear the version yet)
      >       with pytest.raises(error.Hint) as exc_info:
      E       TypeError: expected exception must be a BaseException type, not Hint
      heptapod/testhelpers/tests/test_repo_wrapper.py:54: TypeError
      
      The queston would be whether it'd be reasonable to make `error.Hint`
      subclass `Exception` (or `BaseException`).
      
      Also pytest<6 works for me, but that doesn't mean pytest 6.0.0 was the
      one to start demanding exceptions to be subclass `BaseException`.
      09870b83b236
  3. Oct 13, 2021
  4. Dec 02, 2020
  5. Nov 22, 2020
    • Georges Racinet's avatar
      testhelpers: using new external package · 5708f06346e1
      Georges Racinet authored
      These testhelpers have been externalized as the
      `mercurial_testhelpers` package.
      
      The latter being meant to be identical to a future
      `mercurial.testhelpers` in Mercurial core, they don't
      have facilities for topics nor evolve specific commands.
      
      But the commit options extensibility can be used to
      specify topics in `commit_file`. As for the `prune` helper
      method, it can be implemented by direct subclassing.
      
      This is what `hg-evolve` could later do, if that project
      were to adopt those test helpers. Downstream extensions
      of evolve and topic could then just use a base class
      provided by evolve.
      
      Also, the `RepoWrapper` from `mercurial_testhelpers` has
      two different method names, that we remap directly to
      make the whole test suite pass.
      5708f06346e1
  6. Jul 31, 2020
  7. Jan 10, 2020
    • Georges Racinet's avatar
      ci: hg-evolve no longer in base image · bba4bd483981
      Georges Racinet authored
      Not merely installing install-requirements from the .gitlab-ci.yml
      because that would also install Mercurial, which is either a no-op or
      a costly ignored step.
      bba4bd483981
  8. Dec 15, 2019
Loading