File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 225
225
'PyQt4' ,
226
226
'PyQt5' ,
227
227
'pylons' ,
228
+
229
+ # for use in tests
230
+ '__dummy_third_party1' ,
228
231
}
229
232
230
233
# Modules and packages common to Python 2.7 and 3.x.
422
425
'xml.sax.xmlreader' ,
423
426
'zipfile' ,
424
427
'zlib' ,
428
+ # fake names to use in tests
429
+ '__dummy_stdlib1' ,
430
+ '__dummy_stdlib2' ,
425
431
}
426
432
427
433
# Python 2 standard library modules.
Original file line number Diff line number Diff line change @@ -1289,24 +1289,24 @@ y = 1
1289
1289
[out]
1290
1290
1291
1291
[case testMissingStubForThirdPartyModule]
1292
- import nosexcover
1292
+ import __dummy_third_party1
1293
1293
[out]
1294
- main:1: error: No library stub file for module 'nosexcover '
1294
+ main:1: error: No library stub file for module '__dummy_third_party1 '
1295
1295
main:1: note: (Stub files are from https://github.com/python/typeshed)
1296
1296
1297
1297
[case testMissingStubForStdLibModule]
1298
- import tabnanny
1298
+ import __dummy_stdlib1
1299
1299
[out]
1300
- main:1: error: No library stub file for standard library module 'tabnanny '
1300
+ main:1: error: No library stub file for standard library module '__dummy_stdlib1 '
1301
1301
main:1: note: (Stub files are from https://github.com/python/typeshed)
1302
1302
1303
1303
[case testMissingStubForTwoModules]
1304
- import tabnanny
1305
- import xdrlib
1304
+ import __dummy_stdlib1
1305
+ import __dummy_stdlib2
1306
1306
[out]
1307
- main:1: error: No library stub file for standard library module 'tabnanny '
1307
+ main:1: error: No library stub file for standard library module '__dummy_stdlib1 '
1308
1308
main:1: note: (Stub files are from https://github.com/python/typeshed)
1309
- main:2: error: No library stub file for standard library module 'xdrlib '
1309
+ main:2: error: No library stub file for standard library module '__dummy_stdlib2 '
1310
1310
1311
1311
[case testListComprehensionSpecialScoping]
1312
1312
class A:
You can’t perform that action at this time.
0 commit comments