stubtest: fix on windows (#4455)

Co-authored-by: Akuli
This commit is contained in:
Shantanu
2020-08-17 14:55:58 -07:00
committed by GitHub
parent e9ecea0033
commit f23ce60668
3 changed files with 7 additions and 5 deletions

View File

@@ -24,4 +24,4 @@ jobs:
python -m pip install -U pip
pip install -U mypy==0.780
- name: Run stubtest
run: ./tests/stubtest_test.py --ignore-unused-whitelist
run: python tests/stubtest_test.py --ignore-unused-whitelist

View File

@@ -69,10 +69,11 @@ if sys.version_info >= (3, 3):
],
_arg: Any = ...,
) -> struct_time: ...
@property
def tm_zone(self) -> str: ...
@property
def tm_gmtoff(self) -> int: ...
if sys.version_info >= (3, 6) or sys.platform != "win32":
@property
def tm_zone(self) -> str: ...
@property
def tm_gmtoff(self) -> int: ...
else:
class struct_time(_struct_time):

View File

@@ -17,6 +17,7 @@ _posixsubprocess
asyncio.unix_events
crypt
dbm.gnu
dbm.ndbm
fcntl
grp
nis