gh-136297: Fix hypothesis and subTest usage in test_zoneinfo_property.py (#136384)

This commit is contained in:
sobolevn
2025-07-08 10:51:36 +03:00
committed by GitHub
parent 51934000ba
commit db699db99d
2 changed files with 8 additions and 10 deletions

View File

@@ -147,7 +147,6 @@ class ZoneInfoPickleTest(ZoneInfoTestBase):
def test_pickle_unpickle_cache(self, key):
zi = self.klass(key)
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
with self.subTest(proto=proto):
pkl_str = pickle.dumps(zi, proto)
zi_rt = pickle.loads(pkl_str)
@@ -158,7 +157,6 @@ class ZoneInfoPickleTest(ZoneInfoTestBase):
def test_pickle_unpickle_no_cache(self, key):
zi = self.klass.no_cache(key)
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
with self.subTest(proto=proto):
pkl_str = pickle.dumps(zi, proto)
zi_rt = pickle.loads(pkl_str)

View File

@@ -1,4 +1,4 @@
# Requirements file for hypothesis that
# we use to run our property-based tests in CI.
hypothesis==6.111.2
hypothesis==6.135.26