Skip to content
Snippets Groups Projects
  1. Nov 16, 2021
  2. Nov 12, 2021
    • David Robertson's avatar
      Misc typing fixes for `tests`, part 1 of N (#11323) · 4c96ce39
      David Robertson authored
      * Annotate HomeserverTestCase.servlets
      * Correct annotation of federation_auth_origin
      * Use AnyStr custom_headers instead of a Union
      
      This allows (str, str) and (bytes, bytes).
      This disallows (str, bytes) and (bytes, str)
      
      * DomainSpecificString.SIGIL is a ClassVar
      Unverified
      4c96ce39
  3. Oct 14, 2021
  4. Sep 30, 2021
    • David Robertson's avatar
      Pass str to twisted's IReactorTCP (#10895) · 29364145
      David Robertson authored
      This follows a correction made in twisted/twisted#1664 and should fix our Twisted Trial CI job.
      
      Until that change is in a twisted release, we'll have to ignore the type
      of the `host` argument. I've raised #10899 to remind us to review the
      issue in a few months' time.
      Unverified
      29364145
  5. Sep 24, 2021
  6. Aug 27, 2021
  7. Jul 13, 2021
  8. Jun 17, 2021
  9. Apr 23, 2021
    • Richard van der Hoff's avatar
      Kill off `_PushHTTPChannel`. (#9878) · 84936e22
      Richard van der Hoff authored
      First of all, a fixup to `FakeChannel` which is needed to make it work with the default HTTP channel implementation.
      
      Secondly, it looks like we no longer need `_PushHTTPChannel`, because as of #8013, the producer that gets attached to the `HTTPChannel` is now an `IPushProducer`. This is good, because it means we can remove a whole load of test-specific boilerplate which causes variation between tests and production.
      Unverified
      84936e22
  10. Mar 26, 2021
    • Erik Johnston's avatar
      Make it possible to use dmypy (#9692) · b5efcb57
      Erik Johnston authored
      Running `dmypy run` will do a `mypy` check while spinning up a daemon
      that makes rerunning `dmypy run` a lot faster.
      
      `dmypy` doesn't support `follow_imports = silent` and has
      `local_partial_types` enabled, so this PR enables those options and
      fixes the issues that were newly raised. Note that `local_partial_types`
      will be enabled by default in upcoming mypy releases.
      Unverified
      b5efcb57
  11. Mar 24, 2021
  12. Mar 15, 2021
  13. Mar 09, 2021
  14. Feb 26, 2021
  15. Feb 16, 2021
  16. Jan 28, 2021
  17. Jan 18, 2021
  18. Jan 13, 2021
  19. Dec 15, 2020
  20. Dec 02, 2020
  21. Nov 16, 2020
  22. Nov 15, 2020
  23. Oct 30, 2020
  24. Oct 29, 2020
  25. Oct 27, 2020
  26. Oct 09, 2020
    • Patrick Cloke's avatar
    • Richard van der Hoff's avatar
      Fix threadsafety in ThreadedMemoryReactorClock (#8497) · 9789b1fb
      Richard van der Hoff authored
      This could, very occasionally, cause:
      
      ```
      tests.test_visibility.FilterEventsForServerTestCase.test_large_room
      ===============================================================================
      [ERROR]
      Traceback (most recent call last):
        File "/src/tests/rest/media/v1/test_media_storage.py", line 86, in test_ensure_media_is_in_local_cache
          self.wait_on_thread(x)
        File "/src/tests/unittest.py", line 296, in wait_on_thread
          self.reactor.advance(0.01)
        File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 826, in advance
          self._sortCalls()
        File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 787, in _sortCalls
          self.calls.sort(key=lambda a: a.getTime())
      builtins.ValueError: list modified during sort
      
      tests.rest.media.v1.test_media_storage.MediaStorageTests.test_ensure_media_is_in_local_cache
      ```
      Unverified
      9789b1fb
  27. Oct 02, 2020
  28. Sep 18, 2020
  29. Sep 10, 2020
  30. Sep 04, 2020
  31. Jul 15, 2020
  32. Jun 16, 2020
  33. Jan 03, 2020
  34. Dec 18, 2019
Loading