Source

pypy / lib_pypy / pypy_test / test_grp_extra.py

from __future__ import absolute_import
import py
try:
    from lib_pypy import grp
except ImportError:
    py.test.skip("No grp module on this platform")

def test_extra():
    py.test.raises(TypeError, grp.getgrnam, False)
    py.test.raises(TypeError, grp.getgrnam, None)