[Pkg-bitcoin-commits] [python-quamash] 118/269: Fix doctests

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository python-quamash.

commit 3fe89a07702554686b44a658a412930b4103e9b5
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date:   Mon Jul 21 17:20:41 2014 +0200

    Fix doctests
---
 quamash/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/quamash/__init__.py b/quamash/__init__.py
index 5b585b1..57d6998 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -160,7 +160,7 @@ def _easycallback(fn):
 	>>> from quamash import QEventLoop, QtCore, QtGui, QApplication
 	>>> QThread, QObject = quamash.QtCore.QThread, quamash.QtCore.QObject
 	>>>
-	>>> app = QApplication([])
+	>>> app = QApplication.instance() or QApplication([])
 	>>>
 	>>> global_thread = QThread.currentThread()
 	>>> class MyObject(QObject):
@@ -211,7 +211,7 @@ class QEventLoop(_baseclass):
 
 	>>> import quamash, asyncio
 	>>> from quamash import QtCore, QtGui, QApplication
-	>>> app = QApplication([])
+	>>> app = QApplication.instance() or QApplication([])
 	>>>
 	>>> @asyncio.coroutine
 	... def xplusy(x, y):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list