~ubuntu-branches/debian/sid/shiboken/sid

« back to all changes in this revision

Viewing changes to tests/otherbinding/module_reload_test.py

  • Committer: Package Import Robot
  • Author(s): Didier Raboud
  • Date: 2011-10-26 10:56:09 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20111026105609-w7ribe58f5u884em
Tags: 1.0.9-1
* New 1.0.9 upstream release.
* Bump B-Ds:
  - on generatorrunner to 0.6.14;
  - on apiextractor to 0.10.8.

* Add 12 new symbols for 1.0.9.
* Update packaging to 1.0.9:
  - Refresh patches, add pythonversionindep.patch to allow picking a
    specific python version.
  - Make sure the picked pkg-config file is the default one.
  - Update the cmake configuration calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
#
 
4
# This file is part of the Shiboken Python Bindings Generator project.
 
5
#
 
6
# Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
 
7
#
 
8
# Contact: PySide team <contact@pyside.org>
 
9
#
 
10
# This program is free software; you can redistribute it and/or
 
11
# modify it under the terms of the GNU Lesser General Public License
 
12
# version 2.1 as published by the Free Software Foundation. Please
 
13
# review the following information to ensure the GNU Lesser General
 
14
# Public License version 2.1 requirements will be met:
 
15
# http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 
16
# #
 
17
# This program is distributed in the hope that it will be useful, but
 
18
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
20
# Lesser General Public License for more details.
 
21
#
 
22
# You should have received a copy of the GNU Lesser General Public
 
23
# License along with this program; if not, write to the Free Software
 
24
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 
25
# 02110-1301 USA
 
26
 
1
27
import os
2
28
import sys
3
29
import shutil
4
30
import unittest
5
31
 
 
32
from py3kcompat import IS_PY3K
 
33
 
 
34
if IS_PY3K:
 
35
    from imp import reload
 
36
 
6
37
orig_path = os.path.join(os.path.dirname(__file__))
7
38
workdir = os.getcwd()
8
39
src = os.path.join(orig_path, 'test_module_template.py')