Skip to content

Commit f8c526f

Browse files
committed
Skip live server tests on Windows (need fork)
1 parent c2a0122 commit f8c526f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_live_server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
import os
4+
35
import pytest
46
try:
57
from urllib2 import urlopen
@@ -9,6 +11,9 @@
911
from flask import url_for
1012

1113

14+
pytestmark = pytest.mark.skipif(not hasattr(os, 'fork'), reason='needs fork')
15+
16+
1217
class TestLiveServer:
1318

1419
def test_server_is_alive(self, live_server):

0 commit comments

Comments
 (0)