Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a4b34 commit 349b04eCopy full SHA for 349b04e
2 files changed
Lib/test/test_py_compile.py
@@ -3,6 +3,7 @@
3
import py_compile
4
import shutil
5
import stat
6
+import sys
7
import tempfile
8
import unittest
9
@@ -75,6 +76,8 @@ def test_relative_path(self):
75
76
self.assertTrue(os.path.exists(self.pyc_path))
77
self.assertFalse(os.path.exists(self.cache_path))
78
79
+ @unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,
80
+ 'non-root user required')
81
@unittest.skipIf(os.name == 'nt',
82
'cannot control directory permissions on Windows')
83
def test_exceptions_propagate(self):
Misc/NEWS
@@ -74,6 +74,11 @@ Library
74
- 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
-----
84
0 commit comments