From 306ec02c1d2946b21cd437bf3a7897651268e7ad Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Fri, 5 Nov 2010 14:54:15 -0800
Subject: [PATCH] setup.py: fix a bug in the check for whether we are running
 'trial' or 'test', that affected zooko's test for #1233. refs #1233

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 4b1ef205..d352a1a4 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,7 @@ adglobals = {}
 execfile('src/allmydata/_auto_deps.py', adglobals)
 install_requires = adglobals['install_requires']
 
-if len(sys.argv) > 1 and sys.argv[1] in ['trial', 'test'] and version is not None:
+if ('trial' in sys.argv or 'test' in sys.argv) and version is not None:
     __requires__ = [APPNAME + '==' + version] + install_requires
 
 egg = os.path.realpath(glob.glob('setuptools-*.egg')[0])
-- 
2.45.2