death to "misc" directories. moved most files out of py/misc, either to a
private attic or to other places in the lib. --HG-- branch : trunk
This commit is contained in:
13
py/_testing/test_std.py
Normal file
13
py/_testing/test_std.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
import py
|
||||
|
||||
def test_os():
|
||||
import os
|
||||
assert py.std.os is os
|
||||
|
||||
def test_import_error_converts_to_attributeerror():
|
||||
py.test.raises(AttributeError, "py.std.xyzalskdj")
|
||||
|
||||
def test_std_gets_it():
|
||||
for x in py.std.sys.modules:
|
||||
assert x in py.std.__dict__
|
||||
Reference in New Issue
Block a user