Skip to content

Commit 7d6a869

Browse files
author
Abhishek Singh
committed
Testing for Windows OS
1 parent 322c3c0 commit 7d6a869

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ matrix:
1111
python: 3.9
1212
- os: linux
1313
python: pypy3.6-7.1.1
14-
- os: linux
15-
python: pypy3.6-7.2.0
16-
- os: linux
17-
python: pypy3.6-7.3.3
18-
- os: linux
19-
python: pypy3.7-7.3.3
14+
- os: windows # Windows 10.0.17134 N/A Build 17134
15+
language: shell # 'language: python' is an error on Travis CI Windows
16+
before_install:
17+
- choco install python --version 3.8.0
18+
- python -m pip install --upgrade pip
19+
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
20+
- os: windows # Windows 10.0.17134 N/A Build 17134
21+
language: shell # 'language: python' is an error on Travis CI Windows
22+
before_install:
23+
- choco install python --version 3.9.0
24+
- python -m pip install --upgrade pip
25+
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
2026
install:
2127
- pip install --upgrade pip
2228
- pip install pytest coverage coveralls

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ purchases = [('2006-03-28', 'BUY', 'IBM', 1000, 45.00),
131131
('2006-04-05', 'BUY', 'MSFT', 1000, 72.00),
132132
('2006-04-06', 'SELL', 'XOM', 500, 53.00)]
133133

134-
result = client.execute("INSERT INTO stocks VALUES (?,?,?,?,?)", *purchases, execute_many=True)
134+
result = client.execute("INSERT INTO stocks VALUES (?,?,?,?,?)",
135+
*purchases,
136+
execute_many=True)
135137
pprint(result)
136138

137139
```
@@ -189,7 +191,7 @@ OUTPUT
189191
'lastrowid': 27}
190192
```
191193

192-
Select the rows inserted using the above sql_script
194+
Select the rows inserted using the above SQL script
193195

194196
```python
195197
result = client.execute("SELECT * FROM users")

0 commit comments

Comments
 (0)