dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

Investigate test failure for test_schema_metadata_tibetian #344

Open ellbosch opened 4 years ago

ellbosch commented 4 years ago

Failed on Mac. Stack trace:

self = <test_globalization.TestGlobalizationMetadata instance at 0x11052d998>
test_db = 'mssqlcli_testdb_Mac_1086_local_35TBM1QBJJUS'

    def test_schema_metadata_tibetian(self, test_db):
>       self.run_schema_metadata_validation('tibetian', test_db)

tests/test_globalization.py:188: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_globalization.py:228: in run_schema_metadata_validation
    if self.run_query(client, query):
tests/test_globalization.py:27: in run_query
    for _, _, status, _, is_error in mssqlcliclient.execute_query(query):
mssqlcli/mssqlcliclient.py:108: in execute_query
    for rows, columns, status, statement, is_error in self._execute_query(single_query):
mssqlcli/mssqlcliclient.py:115: in _execute_query
    query_response, query_messages, query_had_error = self._execute_query_execute_request_for(query)
mssqlcli/mssqlcliclient.py:198: in _execute_query_execute_request_for
    exit(1)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Use exit() or Ctrl-D (i.e. EOF) to exit, code = 1

    def __call__(self, code=None):
        # Shells like IDLE catch the SystemExit, but listen when their
        # stdin wrapper is closed.
        try:
            sys.stdin.close()
        except:
            pass
>       raise SystemExit(code)
E       SystemExit: 1

.tox/py27/lib/python2.7/site.py:397: SystemExit