-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathtest352.py
More file actions
78 lines (62 loc) · 1 KB
/
test352.py
File metadata and controls
78 lines (62 loc) · 1 KB
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
"""
[ #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