File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,11 @@ kb.ttl: \
96
96
mv _$@ $@
97
97
98
98
sample.txt.done.log : \
99
+ $(tests_srcdir)/.venv.done.log \
99
100
sample_txt.py
100
- python3 sample_txt.py sample.txt
101
+ source $(tests_srcdir)/venv/bin/activate \
102
+ && python3 sample_txt.py \
103
+ sample.txt
101
104
touch $@
102
105
103
106
# Display difference between rdflib default output and compacted output.
Original file line number Diff line number Diff line change 17
17
Mtime should be 2010-01-02T03:04:56Z.
18
18
"""
19
19
20
- import datetime
21
20
import os
22
21
import sys
23
22
23
+ import dateutil .parser
24
+
24
25
with open (sys .argv [1 ], "w" ) as out_fh :
25
26
out_fh .write ("test" )
26
27
27
- target_datetime = datetime . datetime . fromisoformat ("2010-01-02T03:04:56+00:00" )
28
+ target_datetime = dateutil . parser . isoparse ("2010-01-02T03:04:56+00:00" )
28
29
target_timestamp = target_datetime .timestamp ()
29
30
os .utime (sys .argv [1 ], (target_timestamp , target_timestamp ))
Original file line number Diff line number Diff line change 1
1
PyLD
2
2
pytest
3
+ python-dateutil
You can’t perform that action at this time.
0 commit comments