summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/tests/lint/test_compile_modules.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pym/portage/tests/lint/test_compile_modules.py b/pym/portage/tests/lint/test_compile_modules.py
index 5b86fcfb2..273979b89 100644
--- a/pym/portage/tests/lint/test_compile_modules.py
+++ b/pym/portage/tests/lint/test_compile_modules.py
@@ -51,13 +51,4 @@ class CompileModulesTestCase(TestCase):
cfile = imp.cache_from_source(cfile)
except AttributeError:
cfile += (__debug__ and 'c' or 'o')
- py_compile.compile(x, cfile=cfile, doraise=True)
- os.unlink(cfile)
- cfile_parent_dir = os.path.dirname(cfile)
- if os.path.basename(cfile_parent_dir) == '__pycache__':
- # Python >=3.2
- try:
- os.rmdir(cfile_parent_dir)
- except OSError:
- # __pycache__ directory is non-empty.
- pass
+ py_compile.compile(x, cfile='/dev/null', doraise=True)