sys.foo

Here are the examples of the python api sys.foo taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : test_attribute_error.py
with MIT License
from aroberge

def test_Builtin_module_with_no_file():
    """Issue 116"""
    import sys

    try:
        sys.foo
    except AttributeError as e:
        message = str(e)
        friendly.explain_traceback(redirect="capture")
    result = friendly.get_output()
    
    assert "module 'sys' has no attribute 'foo'" in result
    if friendly.get_lang() == "en":
        assert "Python tells us" in result
    return result, message


def test_Using_slots():