[Python-checkins] cpython: Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.
christian.heimes
python-checkins at python.org
Fri Oct 25 09:22:03 CEST 2013
http://hg.python.org/cpython/rev/e7b97822110f
changeset: 86610:e7b97822110f
user: Christian Heimes <christian at cheimes.de>
date: Fri Oct 25 09:21:51 2013 +0200
summary:
Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.
files:
Lib/test/test_py_compile.py | 3 +++
Misc/NEWS | 5 +++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -3,6 +3,7 @@
import py_compile
import shutil
import stat
+import sys
import tempfile
import unittest
@@ -75,6 +76,8 @@
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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -74,6 +74,11 @@
- 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
-----
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list