Make sure that -t and -tt also work on strings passed to compile().
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 6453b6a..5b0d990 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -68,6 +68,13 @@
 		return NULL;
 	}
 
+	if (Py_TabcheckFlag || Py_VerboseFlag) {
+		tok->filename = "<string>";
+		tok->altwarning = (tok->filename != NULL);
+		if (Py_TabcheckFlag >= 2)
+			tok->alterror++;
+	}
+
 	return parsetok(tok, g, start, err_ret);
 }