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

[tor-commits] [stem/master] test_installs_all_data_files fails with vim swap files



commit 5fa09317c4ef3dd746537acbf2d316f3d6704d1b
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri Nov 4 16:41:52 2016 -0700

    test_installs_all_data_files fails with vim swap files
    
    Simple error with our new test...
    
      ======================================================================
      FAIL: test_installs_all_data_files
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/atagar/Desktop/stem/test/unit/installation.py", line 82, in test_installs_all_data_files
          self.fail("setup.py doesn't install %s" % path)
      AssertionError: setup.py doesn't install /home/atagar/Desktop/stem/stem/.settings.cfg.swp
    
      ----------------------------------------------------------------------
      Ran 2 tests in 0.018s
    
      FAILED (failures=1)
---
 test/unit/installation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/installation.py b/test/unit/installation.py
index 12a1e2e..7e13ab1 100644
--- a/test/unit/installation.py
+++ b/test/unit/installation.py
@@ -76,7 +76,7 @@ class TestInstallation(unittest.TestCase):
       for filename in entry[2]:
         path = os.path.join(directory, filename)
 
-        if path.endswith('.orig') or path.endswith('.py') or path.endswith('.pyc'):
+        if path.endswith('.py') or path.endswith('.pyc') or path.endswith('.swp') or path.endswith('orig'):
           continue
         elif path not in data_files:
           self.fail("setup.py doesn't install %s" % path)



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