mirror of
https://github.com/caronc/apprise.git
synced 2025-08-14 10:28:38 +02:00
Added support for recent CPython and PyPy versions; Droped Python v2.7 Support (#680)
This commit is contained in:
@ -24,13 +24,8 @@
|
||||
# THE SOFTWARE.
|
||||
|
||||
import os
|
||||
try:
|
||||
# Python 3.x
|
||||
from unittest import mock
|
||||
|
||||
except ImportError:
|
||||
# Python 2.7
|
||||
import mock
|
||||
import sys
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
@ -43,6 +38,10 @@ from helpers import AppriseURLTester
|
||||
import logging
|
||||
logging.disable(logging.CRITICAL)
|
||||
|
||||
if hasattr(sys, "pypy_version_info"):
|
||||
raise pytest.skip(reason="Skipping test cases which stall on PyPy",
|
||||
allow_module_level=True)
|
||||
|
||||
# Attachment Directory
|
||||
TEST_VAR_DIR = os.path.join(os.path.dirname(__file__), 'var')
|
||||
|
||||
|
Reference in New Issue
Block a user