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

This commit is contained in:
Christian Heimes 2013-10-25 09:21:51 +02:00
parent c4a4b346a6
commit 349b04e902
2 changed files with 8 additions and 0 deletions

View file

@ -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):

View file

@ -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
-----