All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bugtests.test352.py Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4b2
Show newest version
"""
[ #495602 ] os.path.dirname() can result in an NPE
"""

import support
import os

try:
    os.path.dirname(None)
except TypeError:
    pass
    
try:
    os.path.basename(None)
except TypeError:
    pass
    
try:
    os.path.exists(None)
except TypeError:
    pass
    
try:
    os.path.isabs(None)
except TypeError:
    pass
    
try:
    os.path.isfile(None)
except TypeError:
    pass
    
try:
    os.path.isdir(None)
except TypeError:
    pass
    
try:
    os.path.join(None)
except TypeError:
    pass
    
try:
    os.path.join(None, None)
except TypeError:
    pass
    
try:
    os.path.normcase(None)
except (TypeError, AttributeError):
    pass
    
try:
    if hasattr(os.path, "samefile"):
        os.path.samefile(None, None)
except TypeError:
    pass
    
try:
    os.path.abspath(None)
except TypeError:
    pass
    
try:
    os.path.getsize(None)
except TypeError:
    pass
    
try:
    os.path.getmtime(None)
except TypeError:
    pass
    
try:
    os.path.getatime(None)
except TypeError:
    pass





© 2015 - 2024 Weber Informatics LLC | Privacy Policy