~ubuntu-branches/ubuntu/utopic/pyside/utopic

« back to all changes in this revision

Viewing changes to tests/QtCore/bug_515.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
""" Unittest for bug #515 """
 
2
""" http://bugs.openbossa.org/show_bug.cgi?id=515 """
 
3
 
 
4
from PySide import QtCore
 
5
 
 
6
callCleanup = False
 
7
def _cleanup():
 
8
    global callCleanup
 
9
    callCleanup = True
 
10
 
 
11
def _checkCleanup():
 
12
    global callCleanup
 
13
    assert(callCleanup)
 
14
 
 
15
app = QtCore.QCoreApplication([])
 
16
QtCore.qAddPostRoutine(_cleanup)
 
17
QtCore.qAddPostRoutine(_checkCleanup)
 
18
del app