Commit 7f5e7abd authored by Christian Heimes's avatar Christian Heimes

Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa.

parent 1e2eacaf
...@@ -3,6 +3,7 @@ import os ...@@ -3,6 +3,7 @@ import os
import py_compile import py_compile
import shutil import shutil
import stat import stat
import sys
import tempfile import tempfile
import unittest import unittest
...@@ -75,6 +76,8 @@ class PyCompileTests(unittest.TestCase): ...@@ -75,6 +76,8 @@ class PyCompileTests(unittest.TestCase):
self.assertTrue(os.path.exists(self.pyc_path)) self.assertTrue(os.path.exists(self.pyc_path))
self.assertFalse(os.path.exists(self.cache_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', @unittest.skipIf(os.name == 'nt',
'cannot control directory permissions on Windows') 'cannot control directory permissions on Windows')
def test_exceptions_propagate(self): def test_exceptions_propagate(self):
......
...@@ -74,6 +74,11 @@ Library ...@@ -74,6 +74,11 @@ Library
- Issue #17087: Improved the repr for regular expression match objects. - 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 Build
----- -----
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment