[Pkg-bitcoin-commits] [python-quamash] 98/269: Hopefully travis ci tests will complete now?

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:20 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 100f6a3d228ea6281381c535075a91bb1108fd2c
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Thu Jul 17 16:22:24 2014 -0700

    Hopefully travis ci tests will complete now?
    
    Guard _winapi import so py.test can gather doctests from _windows.py on platforms w/o _winapi
---
 quamash/_windows.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/quamash/_windows.py b/quamash/_windows.py
index fd2b5ad..616147b 100644
--- a/quamash/_windows.py
+++ b/quamash/_windows.py
@@ -1,4 +1,8 @@
-import _winapi
+try:
+	import _winapi
+except ImportError:  # noqa
+	pass  # w/o guarding this import py.test can't gather doctests on platforms w/o _winapi
+
 import asyncio
 from asyncio import windows_events
 from asyncio import _overlapped

-- 
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