[Pkg-bitcoin-commits] [python-quamash] 122/269: Fix doctests
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:23 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 db2020b02957d00b3078d862ce500084f414dac6
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