Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove 3.5 checks
  • Loading branch information
koubaa committed Aug 1, 2020
commit 7b30cfa37178553876104b4169b9a3d582ebf717
4 changes: 0 additions & 4 deletions src/embed_tests/TestPyBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public void Dispose()
[Test]
public void TestBufferWrite()
{
if (Runtime.Runtime.pyversionnumber < 35) return;

string bufferTestString = "hello world! !$%&/()=?";

using (Py.GIL())
Expand All @@ -46,8 +44,6 @@ public void TestBufferWrite()
[Test]
public void TestBufferRead()
{
if (Runtime.Runtime.pyversionnumber < 35) return;

string bufferTestString = "hello world! !$%&/()=?";

using (Py.GIL())
Expand Down
1 change: 0 additions & 1 deletion src/runtime/pyobject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,6 @@ public override int GetHashCode()
/// </remarks>
public PyBuffer GetBuffer(PyBUF flags = PyBUF.SIMPLE)
{
if (Runtime.pyversionnumber < 35) throw new NotSupportedException("GetBuffer requires at least Python 3.5");
return new PyBuffer(this, flags);
}

Expand Down