summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2014-12-01 23:15:26 (GMT)
committerBarry Warsaw <barry@python.org>2014-12-01 23:15:26 (GMT)
commit9d98c9bf42412e05b5352329c6f141df49dd8df7 (patch)
tree74057c6e1f466ccc3c3bccb0c3bbf9f2ad05a8c5 /Lib
parent9e4db75426be7433af7c0d5b569fb3f3c4b5877e (diff)
downloadcpython-9d98c9bf42412e05b5352329c6f141df49dd8df7.zip
cpython-9d98c9bf42412e05b5352329c6f141df49dd8df7.tar.gz
cpython-9d98c9bf42412e05b5352329c6f141df49dd8df7.tar.bz2
Make this change a little more robust for up-merging.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_py_compile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
index 148ab80..e99c317 100644
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -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)