[tor-commits] [stem/master] exclude .swo files
atagar at torproject.org
atagar at torproject.org
Wed Nov 23 18:27:09 UTC 2016
commit 4a107386c71ea613130e883d634a3f5038fbe066
Author: Chelsea H. Komlo <chelsea.komlo at gmail.com>
Date: Tue Nov 22 17:08:17 2016 -0500
exclude .swo files
---
test/unit/installation.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/unit/installation.py b/test/unit/installation.py
index 7e13ab1..fbc9315 100644
--- a/test/unit/installation.py
+++ b/test/unit/installation.py
@@ -75,8 +75,9 @@ class TestInstallation(unittest.TestCase):
for filename in entry[2]:
path = os.path.join(directory, filename)
+ file_type = path.split('.')[-1]
- if path.endswith('.py') or path.endswith('.pyc') or path.endswith('.swp') or path.endswith('orig'):
+ if not file_type in ['.py', '.pyc', '.swp', '.swo']:
continue
elif path not in data_files:
self.fail("setup.py doesn't install %s" % path)
More information about the tor-commits
mailing list