File: test352.py

package info (click to toggle)
jython 2.5.3-3%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 43,404 kB
  • ctags: 105,521
  • sloc: python: 351,322; java: 216,346; xml: 1,547; sh: 330; perl: 124; ansic: 102; makefile: 101
file content (78 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""
[ #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