Skip to content

Commit

Permalink
correctly detect platform, version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Aug 22, 2010
1 parent 048d1c1 commit e76cbe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slave/buildslave/test/unit/test_commands_transfer.py
Expand Up @@ -257,7 +257,7 @@ def test_simple_gz(self):

# except bz2 can't operate in stream mode on py24
if sys.version_info <= (2,4):
test_simple_bz2.skip = "Testing bz2 is not supported on Python-2.4"
del test_simple_bz2

# this is just a subclass of SlaveUpload, so the remaining permutations
# are already tested
Expand Down Expand Up @@ -304,7 +304,7 @@ def check(_):
datafile = os.path.join(self.basedir, 'data')
self.assertTrue(os.path.exists(datafile))
self.assertEqual(open(datafile).read(), test_data)
if runtime.platform != 'win32':
if runtime.platformType != 'win32':
self.assertEqual(os.stat(datafile).st_mode & 0777, 0777)
d.addCallback(check)
return d
Expand Down Expand Up @@ -384,7 +384,7 @@ def check(_):
datafile = os.path.join(self.basedir, 'data')
self.assertTrue(os.path.exists(datafile))
self.assertEqual(open(datafile).read(), test_data[:50])
if runtime.platform != 'win32':
if runtime.platformType != 'win32':
self.assertEqual(os.stat(datafile).st_mode & 0777, 0544)
d.addCallback(check)
return d
Expand Down

0 comments on commit e76cbe7

Please sign in to comment.