testtools 2.8.4__tar.gz → 2.8.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. {testtools-2.8.4 → testtools-2.8.5}/PKG-INFO +2 -2
  2. {testtools-2.8.4 → testtools-2.8.5}/pyproject.toml +1 -1
  3. {testtools-2.8.4 → testtools-2.8.5}/testtools/_version.py +2 -2
  4. {testtools-2.8.4 → testtools-2.8.5}/testtools/testcase.py +11 -18
  5. {testtools-2.8.4 → testtools-2.8.5}/.git-blame-ignore-revs +0 -0
  6. {testtools-2.8.4 → testtools-2.8.5}/.github/dependabot.yaml +0 -0
  7. {testtools-2.8.4 → testtools-2.8.5}/.github/workflows/publish.yml +0 -0
  8. {testtools-2.8.4 → testtools-2.8.5}/.github/workflows/test.yml +0 -0
  9. {testtools-2.8.4 → testtools-2.8.5}/.gitignore +0 -0
  10. {testtools-2.8.4 → testtools-2.8.5}/.gitreview +0 -0
  11. {testtools-2.8.4 → testtools-2.8.5}/.testr.conf +0 -0
  12. {testtools-2.8.4 → testtools-2.8.5}/LICENSE +0 -0
  13. {testtools-2.8.4 → testtools-2.8.5}/MANIFEST.in +0 -0
  14. {testtools-2.8.4 → testtools-2.8.5}/Makefile +0 -0
  15. {testtools-2.8.4 → testtools-2.8.5}/NEWS +0 -0
  16. {testtools-2.8.4 → testtools-2.8.5}/README.rst +0 -0
  17. {testtools-2.8.4 → testtools-2.8.5}/disperse.conf +0 -0
  18. {testtools-2.8.4 → testtools-2.8.5}/doc/Makefile +0 -0
  19. {testtools-2.8.4 → testtools-2.8.5}/doc/_static/placeholder.txt +0 -0
  20. {testtools-2.8.4 → testtools-2.8.5}/doc/_templates/placeholder.txt +0 -0
  21. {testtools-2.8.4 → testtools-2.8.5}/doc/api.rst +0 -0
  22. {testtools-2.8.4 → testtools-2.8.5}/doc/conf.py +0 -0
  23. {testtools-2.8.4 → testtools-2.8.5}/doc/for-framework-folk.rst +0 -0
  24. {testtools-2.8.4 → testtools-2.8.5}/doc/for-test-authors.rst +0 -0
  25. {testtools-2.8.4 → testtools-2.8.5}/doc/hacking.rst +0 -0
  26. {testtools-2.8.4 → testtools-2.8.5}/doc/index.rst +0 -0
  27. {testtools-2.8.4 → testtools-2.8.5}/doc/make.bat +0 -0
  28. {testtools-2.8.4 → testtools-2.8.5}/doc/news.rst +0 -0
  29. {testtools-2.8.4 → testtools-2.8.5}/doc/overview.rst +0 -0
  30. {testtools-2.8.4 → testtools-2.8.5}/doc/twisted-support.rst +0 -0
  31. {testtools-2.8.4 → testtools-2.8.5}/readthedocs-requirements.txt +0 -0
  32. {testtools-2.8.4 → testtools-2.8.5}/requirements.txt +0 -0
  33. {testtools-2.8.4 → testtools-2.8.5}/scripts/README +0 -0
  34. {testtools-2.8.4 → testtools-2.8.5}/scripts/all-pythons +0 -0
  35. {testtools-2.8.4 → testtools-2.8.5}/scripts/update-rtfd +0 -0
  36. {testtools-2.8.4 → testtools-2.8.5}/tests/__init__.py +0 -0
  37. {testtools-2.8.4 → testtools-2.8.5}/tests/helpers.py +0 -0
  38. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/__init__.py +0 -0
  39. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_basic.py +0 -0
  40. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_const.py +0 -0
  41. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_datastructures.py +0 -0
  42. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_dict.py +0 -0
  43. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_doctest.py +0 -0
  44. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_exception.py +0 -0
  45. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_filesystem.py +0 -0
  46. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_higherorder.py +0 -0
  47. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_impl.py +0 -0
  48. {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_warnings.py +0 -0
  49. {testtools-2.8.4 → testtools-2.8.5}/tests/samplecases.py +0 -0
  50. {testtools-2.8.4 → testtools-2.8.5}/tests/test_assert_that.py +0 -0
  51. {testtools-2.8.4 → testtools-2.8.5}/tests/test_compat.py +0 -0
  52. {testtools-2.8.4 → testtools-2.8.5}/tests/test_content.py +0 -0
  53. {testtools-2.8.4 → testtools-2.8.5}/tests/test_content_type.py +0 -0
  54. {testtools-2.8.4 → testtools-2.8.5}/tests/test_fixturesupport.py +0 -0
  55. {testtools-2.8.4 → testtools-2.8.5}/tests/test_helpers.py +0 -0
  56. {testtools-2.8.4 → testtools-2.8.5}/tests/test_monkey.py +0 -0
  57. {testtools-2.8.4 → testtools-2.8.5}/tests/test_run.py +0 -0
  58. {testtools-2.8.4 → testtools-2.8.5}/tests/test_runtest.py +0 -0
  59. {testtools-2.8.4 → testtools-2.8.5}/tests/test_tags.py +0 -0
  60. {testtools-2.8.4 → testtools-2.8.5}/tests/test_testcase.py +0 -0
  61. {testtools-2.8.4 → testtools-2.8.5}/tests/test_testresult.py +0 -0
  62. {testtools-2.8.4 → testtools-2.8.5}/tests/test_testsuite.py +0 -0
  63. {testtools-2.8.4 → testtools-2.8.5}/tests/test_with_with.py +0 -0
  64. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/__init__.py +0 -0
  65. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/_helpers.py +0 -0
  66. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_deferred.py +0 -0
  67. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_matchers.py +0 -0
  68. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_runtest.py +0 -0
  69. {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_spinner.py +0 -0
  70. {testtools-2.8.4 → testtools-2.8.5}/testtools/__init__.py +0 -0
  71. {testtools-2.8.4 → testtools-2.8.5}/testtools/_version.pyi +0 -0
  72. {testtools-2.8.4 → testtools-2.8.5}/testtools/assertions.py +0 -0
  73. {testtools-2.8.4 → testtools-2.8.5}/testtools/compat.py +0 -0
  74. {testtools-2.8.4 → testtools-2.8.5}/testtools/content.py +0 -0
  75. {testtools-2.8.4 → testtools-2.8.5}/testtools/content_type.py +0 -0
  76. {testtools-2.8.4 → testtools-2.8.5}/testtools/helpers.py +0 -0
  77. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/__init__.py +0 -0
  78. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_basic.py +0 -0
  79. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_const.py +0 -0
  80. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_datastructures.py +0 -0
  81. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_dict.py +0 -0
  82. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_doctest.py +0 -0
  83. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_exception.py +0 -0
  84. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_filesystem.py +0 -0
  85. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_higherorder.py +0 -0
  86. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_impl.py +0 -0
  87. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_warnings.py +0 -0
  88. {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/test.py +0 -0
  89. {testtools-2.8.4 → testtools-2.8.5}/testtools/monkey.py +0 -0
  90. {testtools-2.8.4 → testtools-2.8.5}/testtools/py.typed +0 -0
  91. {testtools-2.8.4 → testtools-2.8.5}/testtools/run.py +0 -0
  92. {testtools-2.8.4 → testtools-2.8.5}/testtools/runtest.py +0 -0
  93. {testtools-2.8.4 → testtools-2.8.5}/testtools/tags.py +0 -0
  94. {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/__init__.py +0 -0
  95. {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/doubles.py +0 -0
  96. {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/real.py +0 -0
  97. {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/__init__.py +0 -0
  98. {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/helpers.py +0 -0
  99. {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/matchers/__init__.py +0 -0
  100. {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/matchers/helpers.py +0 -0
  101. {testtools-2.8.4 → testtools-2.8.5}/testtools/testsuite.py +0 -0
  102. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/__init__.py +0 -0
  103. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_deferred.py +0 -0
  104. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_deferreddebug.py +0 -0
  105. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_matchers.py +0 -0
  106. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_runtest.py +0 -0
  107. {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_spinner.py +0 -0
  108. {testtools-2.8.4 → testtools-2.8.5}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testtools
3
- Version: 2.8.4
3
+ Version: 2.8.5
4
4
  Summary: Extensions to the Python standard library unit testing framework
5
5
  Project-URL: Homepage, https://github.com/testing-cabal/testtools
6
6
  Author-email: "Jonathan M. Lange" <jml+testtools@mumak.net>
@@ -26,7 +26,7 @@ Classifier: Typing :: Typed
26
26
  Requires-Python: >=3.10
27
27
  Provides-Extra: dev
28
28
  Requires-Dist: mypy>=1.0.0; extra == 'dev'
29
- Requires-Dist: ruff==0.14.11; extra == 'dev'
29
+ Requires-Dist: ruff==0.15.2; extra == 'dev'
30
30
  Requires-Dist: typing-extensions; (python_version < '3.11') and extra == 'dev'
31
31
  Provides-Extra: test
32
32
  Requires-Dist: testresources; extra == 'test'
@@ -37,7 +37,7 @@ Homepage = "https://github.com/testing-cabal/testtools"
37
37
  test = ["testscenarios", "testresources"]
38
38
  twisted = ["Twisted", "fixtures"]
39
39
  dev = [
40
- "ruff==0.14.11",
40
+ "ruff==0.15.2",
41
41
  "mypy>=1.0.0",
42
42
  "typing-extensions;python_version<'3.11'",
43
43
  ]
@@ -1,3 +1,3 @@
1
1
  # This file is automatically generated by hatch.
2
- version = '2.8.4'
3
- __version__ = (2, 8, 4)
2
+ version = '2.8.5'
3
+ __version__ = (2, 8, 5)
@@ -23,7 +23,7 @@ import sys
23
23
  import types
24
24
  import unittest
25
25
  from collections.abc import Callable, Iterator
26
- from typing import Protocol, TypeVar, cast
26
+ from typing import TypeVar, cast
27
27
  from unittest.case import SkipTest
28
28
 
29
29
  T = TypeVar("T")
@@ -56,6 +56,14 @@ from testtools.testresult import (
56
56
  TestResult,
57
57
  )
58
58
 
59
+ # Circular import: fixtures imports gather_details from here, we import
60
+ # fixtures, leading to gather_details not being available and fixtures being
61
+ # unable to import it.
62
+ try:
63
+ import fixtures
64
+ except ImportError:
65
+ fixtures = None # type: ignore
66
+
59
67
 
60
68
  class _UnexpectedSuccess(Exception):
61
69
  """An unexpected success was raised.
@@ -183,22 +191,7 @@ def gather_details(source_dict: DetailsDict, target_dict: DetailsDict) -> None:
183
191
  target_dict[name] = _copy_content(content_object)
184
192
 
185
193
 
186
- # Circular import: fixtures imports gather_details from here, we import
187
- # fixtures, leading to gather_details not being available and fixtures being
188
- # unable to import it.
189
- try:
190
- import fixtures
191
- except ImportError:
192
- fixtures = None # type: ignore
193
-
194
-
195
- class UseFixtureProtocol(Protocol):
196
- def setUp(self) -> None: ...
197
- def cleanUp(self) -> None: ...
198
- def getDetails(self) -> DetailsDict: ...
199
-
200
-
201
- UseFixtureT = TypeVar("UseFixtureT", bound=UseFixtureProtocol)
194
+ FixtureT = TypeVar("FixtureT", bound="fixtures.Fixture")
202
195
 
203
196
 
204
197
  def _mods(i: int, mod: int) -> Iterator[int]:
@@ -892,7 +885,7 @@ class TestCase(unittest.TestCase):
892
885
  """
893
886
  return self._get_test_method()()
894
887
 
895
- def useFixture(self, fixture: UseFixtureT) -> UseFixtureT:
888
+ def useFixture(self, fixture: "FixtureT") -> "FixtureT":
896
889
  """Use fixture in a test case.
897
890
 
898
891
  The fixture will be setUp, and self.addCleanup(fixture.cleanUp) called.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes