]> wagner.pp.ru Git - oss/ctypescrypto.git/commitdiff
Removed some pylint warnings from setup.py
authorVictor Wagner <vitus@wagner.pp.ru>
Mon, 29 Jun 2015 20:56:17 +0000 (23:56 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Mon, 29 Jun 2015 20:56:17 +0000 (23:56 +0300)
setup.py

index c9babe925d3211a2027fa8d71e744fb03673288e..bed60db66c28442826b8e07086f7c675acda9a6f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,32 +1,32 @@
 from distutils.core import setup
 import distutils.cmd
-import sys,os
+import sys, os
 
 class MyTests(distutils.cmd.Command):
-    user_options=[]
+    user_options = []
     def initialize_options(self):
         pass
     def finalize_options(self):
         pass
     def run(self):
-        sys.path.insert(0,os.getcwd())
+        sys.path.insert(0, os.getcwd())
         import unittest
-        result=unittest.TextTestResult(sys.stdout,True,True)
-        suite= unittest.defaultTestLoader.discover("./tests")
-        print "Discovered %d test cases"%suite.countTestCases()
-        result.buffer=True
+        result = unittest.TextTestResult(sys.stdout, True, True)
+        suite = unittest.defaultTestLoader.discover("./tests")
+        print "Discovered %d test cases" % suite.countTestCases()
+        result.buffer = True
         suite.run(result)
         print ""
         if not result.wasSuccessful():
             if len(result.errors):
                 print "============ Errors disovered ================="
-                for r in result.errors:
-                    print r[0],":",r[1]
-            
+                for res in result.errors:
+                    print res[0], ":", res[1]
+
             if len(result.failures):
                 print "============ Failures disovered ================="
-                for r in result.failures:
-                    print r[0],":",r[1]
+                for res in result.failures:
+                    print res[0], ":", res[1]
             sys.exit(1)
         else:
             print "All tests successful"