Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Test failing for readWriterOptions #397

Closed
jhereth opened this issue Apr 15, 2020 · 2 comments · Fixed by #398
Closed

Test failing for readWriterOptions #397

jhereth opened this issue Apr 15, 2020 · 2 comments · Fixed by #398

Comments

@jhereth
Copy link
Contributor

jhereth commented Apr 15, 2020

Running the test suite on master I get the following error:

...
============================================= FAILURES ==============================================
_________________________________________ readWriterOptions _________________________________________
data: /Users/jhereth/repos/github/pyspark-stubs/test-data/unit/sql-session.test:81:
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/pluggy/manager.py:87: in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/_pytest/runner.py:143: in pytest_runtest_call
    raise e
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/_pytest/runner.py:135: in pytest_runtest_call
    item.runtest()
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/mypy/test/data.py:221: in runtest
    suite.run_case(self)
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/mypy/test/testcheck.py:128: in run_case
    self.run_case_once(testcase)
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/mypy/test/testcheck.py:223: in run_case_once
    assert_string_arrays_equal(output, a, msg.format(testcase.file, testcase.line))
/Users/jhereth/repos/github/pyspark-stubs/.venv/lib/python3.7/site-packages/mypy/test/helpers.py:116: in assert_string_arrays_equal
    raise AssertionError(msg)
E   AssertionError: Unexpected type checker output (/Users/jhereth/repos/github/pyspark-stubs/test-data/unit/sql-session.test, line 81)
--------------------------------------- Captured stderr call ----------------------------------------
Expected:
  main:14: error: Argument "foo" to "load" of "DataFrameReader" has incompatible type "List[str]"; expected "Union[bool, float, int, str]" (diff)
  main:15: error: Argument 2 to "option" of "DataFrameReader" has incompatible type "Tuple[int]"; expected "Union[bool, float, int, str]" (diff)
  main:16: error: Argument "bar" to "options" of "DataFrameReader" has incompatible type "Set[int]"; expected "Union[bool, float, int, str]" (diff)
Actual:
  main:14: error: Argument "foo" to "load" of "DataFrameReader" has incompatible type "List[str]"; expected "Union[bool, float, int, str, None]" (diff)
  main:15: error: Argument 2 to "option" of "DataFrameReader" has incompatible type "Tuple[int]"; expected "Union[bool, float, int, str, None]" (diff)
  main:16: error: Argument "bar" to "options" of "DataFrameReader" has incompatible type "Set[int]"; expected "Union[bool, float, int, str, None]" (diff)

Alignment of first line difference:
  E: ...on[bool, float, int, str]"
  A: ...on[bool, float, int, str, None]"
                                ^
@jhereth
Copy link
Contributor Author

jhereth commented Apr 15, 2020

This has probably been introduced by #391

@zero323
Copy link
Owner

zero323 commented Apr 16, 2020

Probably, thanks for reporting.

I cannot understand why these PRs are not picked by Travis...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants