Skip to content

Commit d077b6c

Browse files
committed
change test commands
1 parent df666fe commit d077b6c

File tree

1 file changed

+52
-9
lines changed

1 file changed

+52
-9
lines changed

nbs/03_xtras.ipynb

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@
618618
{
619619
"data": {
620620
"text/plain": [
621-
"['f', 'c', 'e', 'a', 'g', 'b', 'h', 'd']"
621+
"['c', 'h', 'f', 'a', 'g', 'd', 'b', 'e']"
622622
]
623623
},
624624
"execution_count": null,
@@ -1080,10 +1080,22 @@
10801080
"execution_count": null,
10811081
"metadata": {},
10821082
"outputs": [
1083+
{
1084+
"name": "stdout",
1085+
"output_type": "stream",
1086+
"text": [
1087+
"popenargs (['cmd', '/c', 'echo'],)\n",
1088+
"kwargs {'stdout': -1, 'stderr': -1}\n",
1089+
"popenargs (('cmd', '/c', 'pip', '--version'),)\n",
1090+
"kwargs {'stdout': -1, 'stderr': -1}\n",
1091+
"popenargs (['cmd', '/c', 'pip', '--version'],)\n",
1092+
"kwargs {'stdout': -1, 'stderr': -1}\n"
1093+
]
1094+
},
10831095
{
10841096
"data": {
10851097
"text/plain": [
1086-
"'D:\\\\programs'"
1098+
"'pip 21.0.1 from D:\\\\programs\\\\envs\\\\nbdev\\\\lib\\\\site-packages\\\\pip (python 3.8)'"
10871099
]
10881100
},
10891101
"execution_count": null,
@@ -1093,15 +1105,28 @@
10931105
],
10941106
"source": [
10951107
"run('echo', same_in_win=True)\n",
1096-
"run('conda info --root', same_in_win=True)\n",
1097-
"run(['conda', 'info', '--root'], same_in_win=True)"
1108+
"run('pip', '--version', same_in_win=True)\n",
1109+
"run(['pip', '--version'], same_in_win=True)"
10981110
]
10991111
},
11001112
{
11011113
"cell_type": "code",
11021114
"execution_count": null,
11031115
"metadata": {},
1104-
"outputs": [],
1116+
"outputs": [
1117+
{
1118+
"name": "stdout",
1119+
"output_type": "stream",
1120+
"text": [
1121+
"popenargs (['cmd', '/c', 'dir', '/p'],)\n",
1122+
"kwargs {'stdout': -1, 'stderr': -1}\n",
1123+
"popenargs (['cmd', '/c', 'dir', '/p'],)\n",
1124+
"kwargs {'stdout': -1, 'stderr': -1}\n",
1125+
"popenargs (('cmd', '/c', 'dir', '/p'),)\n",
1126+
"kwargs {'stdout': -1, 'stderr': -1}\n"
1127+
]
1128+
}
1129+
],
11051130
"source": [
11061131
"if sys.platform == 'win32':\n",
11071132
" assert 'ipynb' in run('cmd /c dir /p')\n",
@@ -1124,7 +1149,16 @@
11241149
"cell_type": "code",
11251150
"execution_count": null,
11261151
"metadata": {},
1127-
"outputs": [],
1152+
"outputs": [
1153+
{
1154+
"name": "stdout",
1155+
"output_type": "stream",
1156+
"text": [
1157+
"popenargs (['cmd', '/c', 'findstr', 'asdfds', '00_test.ipynb'],)\n",
1158+
"kwargs {'stdout': -1, 'stderr': -1}\n"
1159+
]
1160+
}
1161+
],
11281162
"source": [
11291163
"if sys.platform == 'win32':\n",
11301164
" test_eq(run('cmd /c findstr asdfds 00_test.ipynb', ignore_ex=True)[0], 1)\n",
@@ -1143,7 +1177,16 @@
11431177
"cell_type": "code",
11441178
"execution_count": null,
11451179
"metadata": {},
1146-
"outputs": [],
1180+
"outputs": [
1181+
{
1182+
"name": "stdout",
1183+
"output_type": "stream",
1184+
"text": [
1185+
"popenargs (['cmd', '/c', 'echo', 'hi'],)\n",
1186+
"kwargs {'stdout': -1, 'stderr': -1}\n"
1187+
]
1188+
}
1189+
],
11471190
"source": [
11481191
"if sys.platform == 'win32':\n",
11491192
" # why I ignore as_types, because every time nbdev_clean_nbs will update \\n to \\r\\n\n",
@@ -1607,8 +1650,8 @@
16071650
"name": "stdout",
16081651
"output_type": "stream",
16091652
"text": [
1610-
"Num Events: 1, Freq/sec: 62.4\n",
1611-
"Most recent: ▇▂▁▅▅ 32.0 31.5 31.2 31.7 31.7\n"
1653+
"Num Events: 1, Freq/sec: 62.9\n",
1654+
"Most recent: ▃▇▃▁▃ 31.3 31.9 31.4 30.8 31.3\n"
16121655
]
16131656
}
16141657
],

0 commit comments

Comments
 (0)