fune/third_party/python/py/testing/root/test_std.py
Dave Hunt 21f960591b Bug 1464082 - Vendor pytest via |mach vendor python|; r=ahal
Updated to 3.2.5.

MozReview-Commit-ID: 34OG1iGeMVW

--HG--
extra : rebase_source : 3ffa191b142f60897abb0728f53e71b8cda52701
2018-05-24 16:18:27 +01:00

13 lines
270 B
Python

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__