From e127bc26c1986838b69f372ef34bbaee4087cf40 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 16 Oct 2023 09:24:26 +1100 Subject: [PATCH] changed server_address defaults --- .github/workflows/async_server_tests.yaml | 10 ++++------ .github/workflows/test.yaml | 6 +++--- pystackql/stackql.py | 4 +--- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/async_server_tests.yaml b/.github/workflows/async_server_tests.yaml index c3e1d96..b98d516 100644 --- a/.github/workflows/async_server_tests.yaml +++ b/.github/workflows/async_server_tests.yaml @@ -10,7 +10,7 @@ jobs: matrix: os: - ubuntu-latest - # - windows-latest + - windows-latest - macos-latest python-version: - "3.7" @@ -19,11 +19,9 @@ jobs: - "3.10" - "3.11" - "3.12" - exclude: - - os: windows-latest - python-version: "3.12" - # - os: ubuntu-latest - # python-version: "3.12" + # exclude: + # - os: windows-latest + # python-version: "3.12" runs-on: ${{matrix.os}} name: 'Run Tests on ${{matrix.os}} with Python ${{matrix.python-version}}' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8341d41..2639544 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,9 +19,9 @@ jobs: - "3.10" - "3.11" - "3.12" - exclude: - - os: windows-latest - python-version: "3.12" + # exclude: + # - os: windows-latest + # python-version: "3.12" runs-on: ${{matrix.os}} name: 'Run Tests on ${{matrix.os}} with Python ${{matrix.python-version}}' diff --git a/pystackql/stackql.py b/pystackql/stackql.py index 20b6c3c..656ebe0 100644 --- a/pystackql/stackql.py +++ b/pystackql/stackql.py @@ -22,7 +22,7 @@ class StackQL: server_address: The address of the StackQL server (server_mode only). :type server_address: str - :default: '0.0.0.0' + :default: '127.0.0.1' server_port: The port of the StackQL server (server_mode only). :type server_port: int @@ -264,8 +264,6 @@ def __init__(self, if self.server_mode: # server mode, connect to a server via the postgres wire protocol - if this_os == 'Windows': - server_address = '127.0.0.1' self.server_address = server_address self.server_port = server_port # establish the connection