mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Make this change a little more robust for up-merging.
This commit is contained in:
parent
9e4db75426
commit
9d98c9bf42
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import os
|
|||
import py_compile
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
|
@ -107,7 +108,7 @@ class PyCompileTests(unittest.TestCase):
|
|||
pyc_path = weird_path + 'c'
|
||||
self.assertEqual(
|
||||
'/'.join(cache_path.split('/')[-2:]),
|
||||
'__pycache__/foo.bar.cpython-34.pyc')
|
||||
'__pycache__/foo.bar.{}.pyc'.format(sys.implementation.cache_tag))
|
||||
with open(weird_path, 'w') as file:
|
||||
file.write('x = 123\n')
|
||||
py_compile.compile(weird_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue