[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Checking for the pyflakes modules we use



commit 32aadbc7f7918d5c9f47a748a288fad16ce5ca69
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Jan 4 11:44:51 2014 -0800

    Checking for the pyflakes modules we use
    
    Presently our jenkins tests are failing since the system has pyflakes version
    0.5 which evidently doesn't have the pyflakes.api module...
    
      https://trac.torproject.org/10539
    
    Checking explicitly for the modules we use when determining if pyflakes is
    avaialable.
---
 test/util.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/util.py b/test/util.py
index 295f883..a889b92 100644
--- a/test/util.py
+++ b/test/util.py
@@ -166,7 +166,8 @@ def is_pyflakes_available():
   """
 
   try:
-    import pyflakes
+    import pyflakes.api
+    import pyflakes.reporter
     return True
   except ImportError:
     return False

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits