summaryrefslogtreecommitdiff
path: root/Lib/test/test_platform.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-16 19:00:55 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-16 19:00:55 +0200
commit3bb38e2e61977ff815de6c33a516d2bd98fcbfd9 (patch)
tree56d1cf2051a44ffba627fd719bc25431bc43b41e /Lib/test/test_platform.py
parent47e124a68b8201284c0b01ff9d1c08abf0059a27 (diff)
parent5188d1bcdb133ee8f36a7d2efc14562ce91c8ff7 (diff)
downloadcpython-3bb38e2e61977ff815de6c33a516d2bd98fcbfd9.tar.gz
Issue #14061: Misc fixes and cleanups in archiving code in shutil.
Imporoved the documentation and tests for make_archive() and unpack_archive(). Improved error handling when corresponding compress module is not available. Brake circular dependency between shutil and tarfile modules.
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r--Lib/test/test_platform.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index 18de110ecb..5f875eff6c 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -33,6 +33,7 @@ class PlatformTest(unittest.TestCase):
'import platform; print(platform.architecture())']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
return p.communicate()
+
real = os.path.realpath(sys.executable)
link = os.path.abspath(support.TESTFN)
os.symlink(real, link)
@@ -262,7 +263,7 @@ class PlatformTest(unittest.TestCase):
with warnings.catch_warnings():
warnings.filterwarnings(
'ignore',
- 'dist\(\) and linux_distribution\(\) '
+ r'dist\(\) and linux_distribution\(\) '
'functions are deprecated .*',
PendingDeprecationWarning,
)
@@ -338,7 +339,7 @@ class PlatformTest(unittest.TestCase):
with warnings.catch_warnings():
warnings.filterwarnings(
'ignore',
- 'dist\(\) and linux_distribution\(\) '
+ r'dist\(\) and linux_distribution\(\) '
'functions are deprecated .*',
PendingDeprecationWarning,
)