From: Christian Heimes Date: Fri, 25 Oct 2013 07:21:51 +0000 (+0200) Subject: Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa. X-Git-Tag: v3.4.0b1~551 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=349b04e902ff90b8ece10396370ed5be9c888a0a;p=python Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa. --- diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 2ad9c3a000..154c08a6a2 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 @@ -75,6 +76,8 @@ class PyCompileTests(unittest.TestCase): self.assertTrue(os.path.exists(self.pyc_path)) self.assertFalse(os.path.exists(self.cache_path)) + @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, + 'non-root user required') @unittest.skipIf(os.name == 'nt', 'cannot control directory permissions on Windows') def test_exceptions_propagate(self): diff --git a/Misc/NEWS b/Misc/NEWS index 2323d88115..5f6ccad752 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -74,6 +74,11 @@ Library - Issue #17087: Improved the repr for regular expression match objects. +Tests +----- + +- Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa. + Build -----