Show More
@@ -322,13 +322,13 b' feature.' | |||
|
322 | 322 | |
|
323 | 323 | $ cat > $TESTTMP/extlibroot/lsub1/lsub2/called.py <<EOF |
|
324 | 324 | > def func(): |
|
325 | > return "this is extlibroot.lsub1.lsub2.called.func()" | |
|
325 | > return b"this is extlibroot.lsub1.lsub2.called.func()" | |
|
326 | 326 | > EOF |
|
327 | 327 | $ cat > $TESTTMP/extlibroot/lsub1/lsub2/unused.py <<EOF |
|
328 | 328 | > raise Exception("extlibroot.lsub1.lsub2.unused is loaded unintentionally") |
|
329 | 329 | > EOF |
|
330 | 330 | $ cat > $TESTTMP/extlibroot/lsub1/lsub2/used.py <<EOF |
|
331 | > detail = "this is extlibroot.lsub1.lsub2.used" | |
|
331 | > detail = b"this is extlibroot.lsub1.lsub2.used" | |
|
332 | 332 | > EOF |
|
333 | 333 | |
|
334 | 334 | Setup sub-package of "external library", which causes instantiation of |
@@ -338,7 +338,7 b' importing with "absolute_import" feature' | |||
|
338 | 338 | |
|
339 | 339 | $ mkdir -p $TESTTMP/extlibroot/recursedown/abs |
|
340 | 340 | $ cat > $TESTTMP/extlibroot/recursedown/abs/used.py <<EOF |
|
341 | > detail = "this is extlibroot.recursedown.abs.used" | |
|
341 | > detail = b"this is extlibroot.recursedown.abs.used" | |
|
342 | 342 | > EOF |
|
343 | 343 | $ cat > $TESTTMP/extlibroot/recursedown/abs/__init__.py <<EOF |
|
344 | 344 | > from __future__ import absolute_import |
@@ -347,7 +347,7 b' importing with "absolute_import" feature' | |||
|
347 | 347 | |
|
348 | 348 | $ mkdir -p $TESTTMP/extlibroot/recursedown/legacy |
|
349 | 349 | $ cat > $TESTTMP/extlibroot/recursedown/legacy/used.py <<EOF |
|
350 | > detail = "this is extlibroot.recursedown.legacy.used" | |
|
350 | > detail = b"this is extlibroot.recursedown.legacy.used" | |
|
351 | 351 | > EOF |
|
352 | 352 | $ cat > $TESTTMP/extlibroot/recursedown/legacy/__init__.py <<EOF |
|
353 | 353 | > # legacy style (level == -1) import |
@@ -366,7 +366,7 b" the submodule 'used' should be somehow a" | |||
|
366 | 366 | |
|
367 | 367 | $ mkdir -p $TESTTMP/extlibroot/shadowing |
|
368 | 368 | $ cat > $TESTTMP/extlibroot/shadowing/used.py <<EOF |
|
369 | > detail = "this is extlibroot.shadowing.used" | |
|
369 | > detail = b"this is extlibroot.shadowing.used" | |
|
370 | 370 | > EOF |
|
371 | 371 | $ cat > $TESTTMP/extlibroot/shadowing/proxied.py <<EOF |
|
372 | 372 | > from __future__ import absolute_import |
@@ -386,25 +386,25 b' feature.' | |||
|
386 | 386 | |
|
387 | 387 | $ cat > $TESTTMP/absextroot/xsub1/xsub2/called.py <<EOF |
|
388 | 388 | > def func(): |
|
389 | > return "this is absextroot.xsub1.xsub2.called.func()" | |
|
389 | > return b"this is absextroot.xsub1.xsub2.called.func()" | |
|
390 | 390 | > EOF |
|
391 | 391 | $ cat > $TESTTMP/absextroot/xsub1/xsub2/unused.py <<EOF |
|
392 | 392 | > raise Exception("absextroot.xsub1.xsub2.unused is loaded unintentionally") |
|
393 | 393 | > EOF |
|
394 | 394 | $ cat > $TESTTMP/absextroot/xsub1/xsub2/used.py <<EOF |
|
395 | > detail = "this is absextroot.xsub1.xsub2.used" | |
|
395 | > detail = b"this is absextroot.xsub1.xsub2.used" | |
|
396 | 396 | > EOF |
|
397 | 397 | |
|
398 | 398 | Setup extension local modules to examine whether demand importing |
|
399 | 399 | works as expected in "level > 1" case. |
|
400 | 400 | |
|
401 | 401 | $ cat > $TESTTMP/absextroot/relimportee.py <<EOF |
|
402 | > detail = "this is absextroot.relimportee" | |
|
402 | > detail = b"this is absextroot.relimportee" | |
|
403 | 403 | > EOF |
|
404 | 404 | $ cat > $TESTTMP/absextroot/xsub1/xsub2/relimporter.py <<EOF |
|
405 | 405 | > from __future__ import absolute_import |
|
406 | 406 | > from ... import relimportee |
|
407 | > detail = "this relimporter imports %r" % (relimportee.detail) | |
|
407 | > detail = b"this relimporter imports %r" % (relimportee.detail) | |
|
408 | 408 | > EOF |
|
409 | 409 | |
|
410 | 410 | Setup modules, which actually import extension local modules at |
General Comments 0
You need to be logged in to leave comments.
Login now