Generate Python code to remove all punctuation from the given string.
String: This, is a test-string.
import string

str = "This, is a test-string."
str = str.translate(str.maketrans('', '', string.punctuation))
print(str)