Sha256: 7170705ec55fb9dd5ceb33006ea3cf7ead57f665c63e04f136469fb1e5ed6da2

Contents?: true

Size: 351 Bytes

Versions: 30

Compression:

Stored size: 351 Bytes

Contents

# test for PR#112 -- functions should not have __module__ attributes

def f():
    pass

if hasattr(f, '__module__'):
    print 'functions should not have __module__ attributes'

# but make sure classes still do have __module__ attributes
class F:
    pass

if not hasattr(F, '__module__'):
    print 'classes should still have __module__ attributes'

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr112.py