Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from nemomobile-packages/pygobject
[tests] switch to using gireactor to work with new gi based pygobject2
- Loading branch information
Showing
2 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
rpm/0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
From aaf8532e1512a5e9340a33c3f82c16e9dd8b34c6 Mon Sep 17 00:00:00 2001 | ||
From: Islam Amer <islam.amer@jollamobile.com> | ||
Date: Wed, 30 Apr 2014 00:30:43 +0300 | ||
Subject: [PATCH] switch to using gireactor to work with new gi based | ||
pygobject2 | ||
|
||
--- | ||
tests/twisted/servicetest.py | 4 ++-- | ||
tests/twisted/test-helper.py | 4 ++-- | ||
2 files changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py | ||
index 31c00f4..adb3030 100644 | ||
--- a/tests/twisted/servicetest.py | ||
+++ b/tests/twisted/servicetest.py | ||
@@ -3,9 +3,9 @@ | ||
Infrastructure code for testing connection managers. | ||
""" | ||
|
||
-from twisted.internet import glib2reactor | ||
+from twisted.internet import gireactor | ||
from twisted.internet.protocol import Protocol, Factory, ClientFactory | ||
-glib2reactor.install() | ||
+gireactor.install() | ||
import sys | ||
import time | ||
import os | ||
diff --git a/tests/twisted/test-helper.py b/tests/twisted/test-helper.py | ||
index 4909a96..5fb5e8e 100644 | ||
--- a/tests/twisted/test-helper.py | ||
+++ b/tests/twisted/test-helper.py | ||
@@ -18,8 +18,8 @@ Once your'e done, the test code is written to a file called test.dump. | ||
import pdb | ||
import pprint | ||
|
||
-from twisted.internet import glib2reactor | ||
-glib2reactor.install() | ||
+from twisted.internet import gireactor | ||
+gireactor.install() | ||
|
||
from gabbletest import EventTest, run | ||
|
||
-- | ||
1.9.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters