[PATCH] Use sys.exit instead of os._exit.

Chris Lumens clumens at redhat.com
Fri Jul 24 20:31:39 UTC 2015


The former ensures atexit handlers get run, and pocketlint uses that to delete
the XDG_RUNTIME_DIR it drops.
---
 tests/pylint/runpylint.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pylint/runpylint.py b/tests/pylint/runpylint.py
index 410dd8d..bd97783 100755
--- a/tests/pylint/runpylint.py
+++ b/tests/pylint/runpylint.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 
-import os
+import sys
 
 from pocketlint import FalsePositive, PocketLintConfig, PocketLinter
 
@@ -29,4 +29,4 @@ if __name__ == "__main__":
     conf = AnacondaLintConfig()
     linter = PocketLinter(conf)
     rc = linter.run()
-    os._exit(rc)
+    sys.exit(rc)
-- 
2.4.3



More information about the anaconda-patches mailing list