Skip to content

Commit

Permalink
Fixes incorrect symbol used in test function, and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShriramK committed Feb 13, 2013
1 parent 163c008 commit becafc6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions master/buildbot/test/unit/test_steps_source_svn.py
Expand Up @@ -84,8 +84,7 @@ class TestSVN(sourcesteps.SourceStepMixin, unittest.TestCase):
</commit>
</entry>
</info>"""
svn_info_stdout_xml_nonintegerrevision
= """<?xml version="1.0"?>
svn_info_stdout_xml_nonintegerrevision = """<?xml version="1.0"?>
<info>
<entry
kind="dir"
Expand Down Expand Up @@ -138,12 +137,12 @@ def test_corrupt_xml(self):
ExpectShell(workdir='wkdir',
command=['svn', 'info', '--xml'])
+ ExpectShell.log('stdio',
stdout=self.svn_info_corrupt_xml)
stdout=self.svn_st_xml_corrupt)
+ 0,
)
self.assertRaises(buildstep.BuildStepFailed, self.runStep())

def test_revision_for_integer_value(self):
def test_revision_for_integer_value(self):
step = svn.SVN(repourl='http://svn.local/app/trunk')
self.setupStep(step)
self.expectCommands(
Expand All @@ -153,7 +152,7 @@ def test_revision_for_integer_value(self):
stdout=self.svn_info_xml_nonintegerrevision)
+ 0,
)
self.runStep()
self.runStep()
self.assertRaises(ValueError, lambda: int(step.revision))

def test_mode_incremental(self):
Expand Down

0 comments on commit becafc6

Please sign in to comment.