Skip to content

Commit 8f58a05

Browse files
authored
Merge branch 'main' into gh-95953-difflib-css-class
2 parents 5a7c3ca + 4fb338d commit 8f58a05

File tree

6 files changed

+7
-18
lines changed

6 files changed

+7
-18
lines changed

Doc/library/zoneinfo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ The behavior of a ``ZoneInfo`` file depends on how it was constructed:
299299
1. ``ZoneInfo(key)``: When constructed with the primary constructor, a
300300
``ZoneInfo`` object is serialized by key, and when deserialized, the
301301
deserializing process uses the primary and thus it is expected that these
302-
are expected to be the same object as other references to the same time
302+
are the same object as other references to the same time
303303
zone. For example, if ``europe_berlin_pkl`` is a string containing a pickle
304304
constructed from ``ZoneInfo("Europe/Berlin")``, one would expect the
305305
following behavior:

Lib/test/test_capi/test_misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,7 @@ def test_pending_call_creates_thread_subinterpreter(self):
19961996
def output():
19971997
time.sleep(1)
19981998
os.write({w}, b"x")
1999+
os.close({w})
19992000
20002001
20012002
def callback():
@@ -2014,6 +2015,7 @@ def create_pending_call():
20142015
interp.close()
20152016
data = os.read(r, 1)
20162017
self.assertEqual(data, b"x")
2018+
os.close(r)
20172019

20182020

20192021
@requires_subinterpreters

Lib/test/test_importlib/metadata/_issue138313.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

Lib/test/test_importlib/metadata/fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ def setUp(self):
374374
# Add self.zip_name to the front of sys.path.
375375
self.resources = contextlib.ExitStack()
376376
self.addCleanup(self.resources.close)
377+
# workaround for #138313
378+
self.addCleanup(lambda: None)
377379

378380

379381
def parameterize(*args_set):

Lib/test/test_importlib/metadata/test_main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323

2424
from . import fixtures
25-
from . import _issue138313
2625
from ._path import Symlink
2726

2827

@@ -358,7 +357,6 @@ def test_packages_distributions_example(self):
358357
self._fixture_on_path('example-21.12-py3-none-any.whl')
359358
assert packages_distributions()['example'] == ['example']
360359

361-
@_issue138313.skip_on_buildbot
362360
def test_packages_distributions_example2(self):
363361
"""
364362
Test packages_distributions on a wheel built
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Restore skipped test and add janky workaround to prevent select buildbots
2+
from failing with a ResourceWarning.

0 commit comments

Comments
 (0)