~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to tests/unittests/test_handler/test_handler_growpart.py

  • Committer: Barry Warsaw
  • Date: 2015-01-21 20:35:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1054.
  • Revision ID: barry@python.org-20150121203556-dyvnyq7echfj6pe7
Fix file modes to be Python 2/3 compatible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        # this patches out devent2dev, os.stat, and device_part_info
146
146
        # so in the end, doesn't test a lot
147
147
        devs = ["/dev/XXda1", "/dev/YYda2"]
148
 
        devstat_ret = Bunch(st_mode=25008, st_ino=6078, st_dev=5L,
 
148
        devstat_ret = Bunch(st_mode=25008, st_ino=6078, st_dev=5,
149
149
                            st_nlink=1, st_uid=0, st_gid=6, st_size=0,
150
150
                            st_atime=0, st_mtime=0, st_ctime=0)
151
151
        enoent = ["/dev/NOENT"]