~takluyver/unattended-upgrades/py3

« back to all changes in this revision

Viewing changes to test/test_minimal_partitions.py

  • Committer: Barry Warsaw
  • Date: 2012-06-19 20:19:36 UTC
  • mfrom: (277.1.5 unattended-upgrades)
  • Revision ID: barry@python.org-20120619201936-vrpi8yxbbxzdr6qg
Merge Thomas's branch: Port to Python 3
- Additional fixes by Barry

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
 
1
#!/usr/bin/python3
2
2
 
3
3
import apt
4
4
import apt_pkg
5
5
import os
6
 
import logging
7
6
import unittest
8
 
import sys
9
 
import time
10
7
 
11
8
import unattended_upgrade
12
9
 
18
15
    
19
16
    # overwrite to log the data
20
17
    def status_change(self, pkg, percent, status):
21
 
        print pkg, percent
 
18
        print(pkg, percent)
22
19
        self.DATA.append([pkg, percent])
23
20
 
24
21
class TestMinimalPartitions(unittest.TestCase):