summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Thiem <ptthiem@gmail.com>2014-05-17 16:12:20 -0500
committerPhilip Thiem <ptthiem@gmail.com>2014-05-17 16:12:20 -0500
commit97adbcc9073b2e4888f1a759bfc211b3a3e41588 (patch)
tree18208e51f0264ef2c122c71411bb5c2bcbe33872
parenta44aa46d3ebea80c6e3722d27d6fc50199c288a5 (diff)
downloadpython-setuptools-bitbucket-97adbcc9073b2e4888f1a759bfc211b3a3e41588.tar.gz
PY26 doesn't have assertIn
-rw-r--r--setuptools/tests/test_egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 4c41a2cc..7531e37c 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -155,7 +155,7 @@ class TestSvnDummy(environment.ZippedEnvironment):
infile.close()
del infile
- self.assertIn("Version: 0.1.1-r1\n", read_contents)
+ self.assertTrue("Version: 0.1.1-r1\n" in read_contents)
@skipIf(not test_svn._svn_check, "No SVN to text, in the first place")
def test_no_tags(self):
@@ -173,7 +173,7 @@ class TestSvnDummy(environment.ZippedEnvironment):
infile.close()
del infile
- self.assertIn("Version: 0.1.1\n", read_contents)
+ self.assertTrue("Version: 0.1.1\n" in read_contents)
class TestSvnDummyLegacy(environment.ZippedEnvironment):