Skip to content

Commit

Permalink
Disable simpleserver test on Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
denisenkom committed Dec 10, 2017
1 parent 53475e6 commit a24e54f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -3,6 +3,7 @@ version: 1.0.{build}
os: Windows Server 2012 R2

environment:
INAPPVEYOR: 1
HOST: localhost
SQLUSER: sa
SQLPASSWORD: Password12!
Expand Down
5 changes: 5 additions & 0 deletions tests/unit_test.py
Expand Up @@ -1022,10 +1022,15 @@ def test_datetime_serializer(self):

def test_with_simple_server():
import sys
import os
if sys.version_info[0:2] < (3, 6):
# only works on Python 3.6 and newer
return

if os.environ.get('INAPPVEYOR', '') == '1':
# Appveyor does not allow server sockets even on localhost
return

import simple_server
import utils
import threading
Expand Down

0 comments on commit a24e54f

Please sign in to comment.