You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/11/30 16:17:50 UTC

[3/3] tinkerpop git commit: Minor fix to assertion in timezones for g:Date in python tests CTR

Minor fix to assertion in timezones for g:Date in python tests CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/f9772ae7
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/f9772ae7
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/f9772ae7

Branch: refs/heads/master
Commit: f9772ae7f2d0a3233ef20b3f09e4d9650cd42093
Parents: 47c8935
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Nov 30 11:17:23 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Nov 30 11:17:23 2017 -0500

----------------------------------------------------------------------
 .../src/main/jython/tests/structure/io/test_graphsonV3d0.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f9772ae7/gremlin-python/src/main/jython/tests/structure/io/test_graphsonV3d0.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/tests/structure/io/test_graphsonV3d0.py b/gremlin-python/src/main/jython/tests/structure/io/test_graphsonV3d0.py
index 00a19ec..6dc2c38 100644
--- a/gremlin-python/src/main/jython/tests/structure/io/test_graphsonV3d0.py
+++ b/gremlin-python/src/main/jython/tests/structure/io/test_graphsonV3d0.py
@@ -193,7 +193,7 @@ class TestGraphSONReader(object):
     def test_datetime(self):
         dt = self.graphson_reader.readObject(json.dumps({"@type": "g:Date", "@value": 1481750076295}))
         assert isinstance(dt, datetime.datetime)
-        assert dt == datetime.datetime(2016, 12, 14, 13, 14, 36, 295000)
+        assert dt == datetime.datetime(2016, 12, 14, 16, 14, 36, 295000, tzinfo=None)
 
     def test_timestamp(self):
         dt = self.graphson_reader.readObject(json.dumps({"@type": "g:Timestamp", "@value": 1481750076295}))