Skip to content

Commit e393af0

Browse files
committed
A couple more improvements
1 parent caab85c commit e393af0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/library/site.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,5 +372,6 @@ value greater than 2 if there is an error.
372372
.. seealso::
373373

374374
* :pep:`370` -- Per user site-packages directory
375+
* :pep:`829` -- Startup entry points and the deprecation of import lines in ``.pth`` files
375376
* :ref:`sys-path-init` -- The initialization of :data:`sys.path`.
376377

Lib/test/test_site.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ def test_read_start_file_comments_only(self):
10051005
self.assertEqual(site._pending_entrypoints, {})
10061006

10071007
def test_read_start_file_nonexistent(self):
1008-
site._read_start_file(self.tmpdir, 'nonexistent.start')
1008+
with captured_stderr():
1009+
site._read_start_file(self.tmpdir, 'nonexistent.start')
10091010
self.assertEqual(site._pending_entrypoints, {})
10101011

10111012
@unittest.skipUnless(hasattr(os, 'chflags'), 'test needs os.chflags()')

0 commit comments

Comments
 (0)