This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pablogsal, vajrasky, vstinner
Date 2018-12-17.15:40:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Ah, I think because I use cpython2 directory name, you thought I used Python 2. cpython2 is just a directory name. It has nothing to do with Python 2. I used master when finding this bug.

Ah right, I can reproduce the issue in master:

vstinner@apu$ ./python Lib/test/ 
Traceback (most recent call last):
  File "Lib/test/", line 8, in <module>
    import xmlrpc.client as xmlrpclib
  File "/home/vstinner/prog/python/master/Lib/xmlrpc/", line 136, in <module>
    import http.client
  File "/home/vstinner/prog/python/master/Lib/http/", line 71, in <module>
    import email.parser
  File "/home/vstinner/prog/python/master/Lib/email/", line 12, in <module>
    from email.feedparser import FeedParser, BytesFeedParser
  File "/home/vstinner/prog/python/master/Lib/email/", line 27, in <module>
    from email._policybase import compat32
  File "/home/vstinner/prog/python/master/Lib/email/", line 9, in <module>
    from email.utils import _has_surrogates
  File "/home/vstinner/prog/python/master/Lib/email/", line 28, in <module>
    import random
  File "/home/vstinner/prog/python/master/Lib/", line 47, in <module>
    import bisect as _bisect
  File "/home/vstinner/prog/python/master/Lib/test/", line 27, in <module>
    import tempfile
  File "/home/vstinner/prog/python/master/Lib/", line 45, in <module>
    from random import Random as _Random
ImportError: cannot import name 'Random' from 'random' (/home/vstinner/prog/python/master/Lib/

Hum. We should either rename Lib/test/ to Lib/test/ or move the feature into libregrtest.
Date User Action Args
2018-12-17 15:40:12vstinnersetrecipients: + vstinner, vajrasky, pablogsal
2018-12-17 15:40:12vstinnersetmessageid: <>
2018-12-17 15:40:12vstinnerlinkissue35519 messages
2018-12-17 15:40:12vstinnercreate