mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
PEP 3147
This commit is contained in:
parent
0e59cc3fc3
commit
28a691b7fd
39 changed files with 1203 additions and 287 deletions
|
|
@ -13,7 +13,12 @@ import unittest
|
|||
|
||||
|
||||
def test_main():
|
||||
start_dir = os.path.dirname(__file__)
|
||||
if '__pycache__' in __file__:
|
||||
parts = __file__.split(os.path.sep)
|
||||
start_dir = sep.join(parts[:-2])
|
||||
else:
|
||||
start_dir = os.path.dirname(__file__)
|
||||
# XXX 2010-03-18 barry: Fix __file__
|
||||
top_dir = os.path.dirname(os.path.dirname(start_dir))
|
||||
test_loader = unittest.TestLoader()
|
||||
if '--builtin' in sys.argv:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue