* bpo-44771: Sync with importlib_resources 5.2.2, fixing refleak.
* Include new 'resources' dir in the Makefile.
# properly.
fd, raw_path = tempfile.mkstemp(suffix=suffix)
try:
- os.write(fd, reader())
- os.close(fd)
+ try:
+ os.write(fd, reader())
+ finally:
+ os.close(fd)
del reader
yield pathlib.Path(raw_path)
finally:
try:
os.remove(raw_path)
- except (FileNotFoundError, PermissionError):
+ except FileNotFoundError:
pass
test/test_importlib/namespace_pkgs/project3/parent/child \
test/test_importlib/namespacedata01 \
test/test_importlib/partial \
+ test/test_importlib/resources \
test/test_importlib/source \
test/test_importlib/zipdata01 \
test/test_importlib/zipdata02 \